export type SearchScope = "memories" | "personalities" | "projects" | "skills" | "all"; export interface SearchResult { file: string; agent?: string; scope: SearchScope; score: number; excerpts: string[]; } export interface SearchOptions { scope?: SearchScope; maxResults?: number; contextLines?: number; } /** * Full-text search across agent memories (`.hmem`), personalities, project docs, and skills. * @param projectDir Directory that contains the `.hmem` files and related assets. * @param query Keywords to search for. * @param options Scope, result limit, and context line count. * @returns Ranked list of {@link SearchResult} hits. */ export declare function searchMemory(projectDir: string, query: string, options?: SearchOptions): SearchResult[];