import type { SearchResult, FindResult, CountResult, JqResult, YqResult } from "../schemas/index.js"; /** * Parses `rg --json` JSONL output into a structured SearchResult. * * Each line of stdout is a JSON object. We filter for type="match" events * and extract the file, line number, column (from submatches[0].start), * match text, and full line content (trimmed). */ export declare function parseRgJsonOutput(stdout: string, maxResults: number): SearchResult; /** * Parses `fd` output (one file path per line) into a structured FindResult. * Extracts basename and extension for each entry. */ export declare function parseFdOutput(stdout: string, maxResults: number, cwd: string): FindResult; /** * Parses `rg --count` output into a structured CountResult. * Each line has the format `file:count`. We split on the LAST colon * to handle file paths that may contain colons (e.g., Windows drive letters). */ export declare function parseRgCountOutput(stdout: string): CountResult; /** * Parses jq command output into a structured JqResult. * If the command failed (non-zero exit), stderr is used as the output. */ export declare function parseJqOutput(stdout: string, stderr: string, exitCode: number): JqResult; /** * Parses yq command output into a structured YqResult. * If the command failed (non-zero exit), stderr is used as the output. */ export declare function parseYqOutput(stdout: string, stderr: string, exitCode: number, _outputFormat?: string): YqResult; //# sourceMappingURL=parsers.d.ts.map