import type { Database } from "better-sqlite3"; import type { SearchDocument } from "../../search-document"; import type { ConversationMeta, SearchHighlight } from "../../types"; export interface FtsSearchFilters { account?: string; provider?: string; project?: string; since?: Date; include?: "all" | "conversations" | "subagents" | "teammates"; } export interface FtsHit { sourcePath: string; body: { snippet: string; highlights: SearchHighlight[]; } | null; } export declare class FtsRepo { private db; constructor(db: Database); upsert(rowId: number, meta: ConversationMeta, doc: SearchDocument): void; readDocument(rowId: number): SearchDocument | null; isCurrent(rowId: number, meta: ConversationMeta, doc: SearchDocument): boolean; remove(rowId: number): void; search(query: string, limit: number, filters?: FtsSearchFilters): FtsHit[]; count(): number; } //# sourceMappingURL=fts.repo.d.ts.map