import type { LysandClient } from "@lysand-org/client"; import type { Status } from "@lysand-org/client/types"; export const usePublicTimeline = ( client: LysandClient | null, options: MaybeRef<{ only_media?: boolean; limit?: number; max_id?: string; since_id?: string; min_id?: string; }>, ): { timeline: Ref; loadNext: () => Promise; loadPrev: () => Promise; } => { return useTimeline( client, (client, options) => client?.getPublicTimeline(options), options, ); };