import type { MaybeRefOrGetter, Ref } from "vue"; export interface Thread { id: string; agentId: string; name: string | null; archived: boolean; createdAt: string; updatedAt: string; /** * ISO-8601 timestamp of the most recent agent run on this thread. Absent * when the thread has never been run. Prefer this over `updatedAt` for * user-facing "last activity" displays — it is not bumped by metadata-only * actions like rename or archive. */ lastRunAt?: string; } export interface UseThreadsInput { agentId: MaybeRefOrGetter; includeArchived?: MaybeRefOrGetter; limit?: MaybeRefOrGetter; } export interface UseThreadsResult { threads: Ref; isLoading: Ref; error: Ref; hasMoreThreads: Ref; isFetchingMoreThreads: Ref; fetchMoreThreads: () => void; renameThread: (threadId: string, name: string) => Promise; archiveThread: (threadId: string) => Promise; deleteThread: (threadId: string) => Promise; } /** * Vue composable for listing and managing Intelligence platform threads. * * The hook fetches threads for the runtime-authenticated user and the given * `agentId`, then keeps the result in sync via the core thread store's realtime * channel when available. Inputs accept refs/computeds to make thread context * changes reactive. */ export declare function useThreads(input: UseThreadsInput): UseThreadsResult; //# sourceMappingURL=use-threads.d.ts.map