export interface RepositorySearchOptions { maxBytes?: number; onLine?: (line: string) => boolean | void; } export declare function parseRepositoryMatch(workspace: string, line: string): { path: string; line: number; text: string; match: boolean; } | undefined; /** One bounded process path for raw filename output and streamed JSON events. */ export declare function repositorySearch(cwd: string, args: string[], signal?: AbortSignal, options?: RepositorySearchOptions): Promise<{ output: string; truncated: boolean; }>; /** Search results must satisfy the same policy as direct file reads. */ export declare function isSearchFileAllowed(workspace: string, path: string): boolean;