import type { Tool } from '@wrongstack/core/types'; export type FormatFixer = 'biome' | 'prettier' | 'auto'; export interface FormatInput { files?: string | string[] | undefined; fixer?: FormatFixer | undefined; check?: boolean | undefined; cwd?: string | undefined; } export interface FormatOutput { fixer: string; /** Parsed from formatter output when confidently available; undefined otherwise. */ files_checked: number | undefined; /** Parsed from formatter output when confidently available; undefined otherwise. */ files_changed: number | undefined; output: string; truncated: boolean; } export type FormatContext = Parameters['execute']>[1]; export declare const formatTool: Tool; /** * Extract file counts from real formatter output. Biome prints stable summary * lines ("Checked 12 files in 30ms. Fixed 3 files."); anything else (including * prettier's per-file listing, whose shape varies by version and flags) yields * `undefined` rather than a guessed number. */ export declare function parseFormatterCounts(fixer: string, output: string, isCheck?: boolean): { checked: number | undefined; changed: number | undefined; }; export declare function detectFixer(cwd: string): Promise; //# sourceMappingURL=format.d.ts.map