import type { SqliteDatabase } from "../db/sqlite-shim.js";
export type SessionSearchSource = "message" | "thread_activity";
export interface SessionSearchOptions {
    query: string;
    limit?: number;
    userId?: string;
    sessionId?: string;
    threadId?: string;
    includeMessages?: boolean;
    includeThreadActivities?: boolean;
}
export interface SessionSearchResult {
    source: SessionSearchSource;
    id: string;
    sessionId: string | null;
    sessionName?: string | null;
    threadId?: string | null;
    threadTitle?: string | null;
    role?: string | null;
    kind?: string | null;
    content: string;
    snippet: string;
    createdAt: string;
    score: number;
}
export declare function buildFtsQuery(query: string): string | null;
export declare class SessionSearchService {
    private readonly sqlite;
    constructor(sqlite: SqliteDatabase);
    search(options: SessionSearchOptions): SessionSearchResult[];
    private searchMessages;
    private searchThreadActivities;
}
//# sourceMappingURL=session-search.d.ts.map