export declare class SearchTimeoutError extends Error {
    constructor(timeoutMs: number);
}
export interface ProjectEntry {
    absolutePath: string;
    relativePath: string;
    isDirectory: boolean;
}
export interface SearchMatch {
    file: string;
    line: number;
    content: string;
}
export declare function matchesGlob(filePath: string, pattern: string, matchBasename?: boolean): boolean;
export declare function walkProjectEntries(cwd: string, startPath: string | undefined, onEntry: (entry: ProjectEntry) => boolean | Promise<boolean>, signal?: AbortSignal): Promise<void>;
export declare function findMatchingPaths(pattern: string, cwd: string, maxResults: number): Promise<{
    files: string[];
    truncated: boolean;
}>;
export declare function searchProjectContents(query: string, cwd: string, maxResults: number, caseSensitive: boolean, include?: string, searchPath?: string, wholeWord?: boolean, contextLines?: number, timeoutMs?: number): Promise<{
    matches: SearchMatch[];
    truncated: boolean;
}>;
//# sourceMappingURL=file-search.d.ts.map