import type { Tool } from '@wrongstack/core/types'; export type GrepOutputMode = 'content' | 'files_with_matches' | 'count'; export type GrepEngine = 'rg' | 'native'; export type GrepBackend = GrepEngine; export interface GrepInput { pattern: string; path?: string | undefined; glob?: string | undefined; output_mode?: GrepOutputMode | undefined; context_lines?: number | undefined; case_insensitive?: boolean | undefined; limit?: number | undefined; } export interface GrepOutput { matches: string[]; count: number; truncated: boolean; used: GrepEngine; } export declare const grepTool: Tool; /** Test-only: forget the cached rg availability so mocks can vary per test. */ export declare function __resetRgDetectionForTests(): void; /** Test-only: explicitly set rg availability to test both engines. */ export declare function __setRgAvailableForTests(available: boolean | undefined): void; //# sourceMappingURL=grep.d.ts.map