import type { Database } from "better-sqlite3"; import type { ConversationMeta } from "../../types"; export interface ConversationRow { id: number; file_id: number; source_path: string; provider: string; kind: string | null; external_session_id: string | null; session_id: string; session_name: string | null; project_path: string | null; project_name: string | null; account: string; branch: string | null; preview: string | null; content_snippet: string | null; message_count: number; page_message_count: number; last_message_sender: string; timestamp: string | null; first_sent_at: string | null; first_sent_text: string | null; last_sent_at: string | null; last_sent_text: string | null; model: string | null; is_subagent: number; parent_session_id: string | null; subagent_id: string | null; parent_session_uuid: string | null; is_teammate: number; team_name: string | null; tool_names_json: string | null; last_prompt: string | null; is_imported_from_claude: number; is_imported_from_codex: number; is_imported_from_cursor: number; name_slots: string | null; status: string; } export declare function rowToMeta(row: ConversationRow): ConversationMeta; export declare class ConversationsRepo { private db; constructor(db: Database); upsert(fileId: number, meta: ConversationMeta, pageMessageCount?: number): void; getBySourcePath(sourcePath: string): ConversationMeta | null; getByIdOrSession(id: string): ConversationMeta | null; getAllBySessionId(sessionId: string): ConversationMeta[]; allActive(): ConversationMeta[]; recent(limit: number): ConversationMeta[]; distinctProjects(): string[]; deleteByFileId(fileId: number): void; pageMessageCount(sourcePath: string): number; count(): number; } //# sourceMappingURL=conversations.repo.d.ts.map