export type ConversationSource = "claude" | "codex" | "copilot" | "opencode";
export interface ConversationSearchHit {
    conversation: string;
    source: ConversationSource;
    title: string;
    cwd: string | null;
    pane: string | null;
    entry: string;
    at: string;
    role: "user" | "assistant";
    snippet: string;
}
export interface ConversationSearchPage {
    results: ConversationSearchHit[];
    cursor: string | null;
    partial?: true;
}
/** Serialize index updates in this Hook process; reads stay consistent with the
 * last write and two searches cannot rebuild the same file twice at once. */
export declare function conversationSearch(q: string | null | undefined, limit?: string | null, cursor?: string | null): Promise<ConversationSearchPage>;
