import * as react from 'react'; interface ThreadMeta { id: string; title: string; createdAt: number; updatedAt: number; messageCount: number; pinned?: boolean; archived?: boolean; } declare function threadKey(id: string): string; declare function useThreads(): { threads: ThreadMeta[]; activeId: string | null; setActiveId: react.Dispatch>; create: (title?: string) => Promise; remove: (id: string) => Promise; rename: (id: string, title: string) => Promise; togglePin: (id: string) => Promise; updateMeta: (id: string, patch: Partial) => Promise; reload: () => Promise; storageKey: string | null; }; export { type ThreadMeta, threadKey, useThreads };