import { type SessionInfo } from "@earendil-works/pi-coding-agent"; import type { Entry, PixMenuItem } from "../types.js"; export type SessionSearchMatch = { sessionEntryId?: string; role?: string; text: string; matchIndex: number; }; export type SessionSearchResult = { session: SessionInfo; query: string; snippet: string; match: SessionSearchMatch; }; export type SessionSearchOptions = { cwd: string; maxResults?: number; snippetLength?: number; onProgress?: (loaded: number, total: number) => void; }; export declare function searchSessions(query: string, options: SessionSearchOptions): Promise; export declare function createSessionSearchMenuItems(results: readonly SessionSearchResult[]): PixMenuItem[]; export declare function searchResultTargetEntry(entries: readonly Entry[], result: SessionSearchResult): Entry | undefined; export declare function searchResultScrollNeedles(result: SessionSearchResult): string[];