import type { ConversationDoc, Id } from '../types'; export interface UseConversationListReturn { conversations: () => ConversationDoc[]; activeId: () => Id | undefined; load: () => Promise; create: (title?: string, metadata?: Record) => Promise; setActive: (id: Id) => void; archive: (id: Id) => Promise; } export interface UseConversationListOptions { autoLoad?: boolean; } /** * Hook for managing conversation list * * @example * ```tsx * const { conversations, activeId, create, setActive } = useConversationList(); * // Conversations are loaded automatically on mount! * * // Create a new conversation * const handleCreate = async () => { * await create('New Chat'); * }; * ``` */ export declare function useConversationList(options?: UseConversationListOptions): UseConversationListReturn; //# sourceMappingURL=useConversationList.d.ts.map