import type { ToolResult } from "../../types.js"; export interface FsSearchOptions { confirmed?: boolean | undefined; maxMatches?: number | undefined; maxPerFile?: number | undefined; glob?: string | undefined; caseInsensitive?: boolean | undefined; fixedString?: boolean | undefined; context?: number | undefined; filesOnly?: boolean | undefined; hidden?: boolean | undefined; timeoutMs?: number | undefined; } export declare function engineGlob(glob: string): string; export declare function globToPathRegExp(glob: string): RegExp | undefined; export interface SearchHit { readonly path: string; readonly line: number; readonly match: boolean; readonly text: string; } export declare function parseHitLine(raw: string): SearchHit | undefined; export declare function parseEngineOutput(stdout: string, filesOnly: boolean): SearchHit[]; export declare function filterHitsByGlob(hits: readonly SearchHit[], glob: string | undefined): SearchHit[]; export declare function capHits(hits: readonly SearchHit[], maxMatches: number): { readonly hits: SearchHit[]; readonly matches: number; readonly truncated: boolean; }; export declare function hasHits(stdout: string, filesOnly: boolean): boolean; export declare function renderHit(hit: SearchHit, filesOnly: boolean): string; export declare function fsSearch(pattern: string, path?: string, options?: FsSearchOptions): Promise;