/** Newest window: tail of the bridge log by bytes (not full file). */ export declare const BRIDGE_LOG_TAIL_BYTES: number; export declare const MAX_TOOL_FAILURE_CLASSES = 30; export declare function resolveBridgePluginLogPath(): string; /** Read up to `maxBytes` from the end of a log file (UTF-8). */ export declare function tailLogFileBytes(path: string, maxBytes: number): string; export type ToolFailureKey = string; /** * Aggregate failure-shaped lines from bridge plugin log text into counts. * Input should be a recent tail only; keys are tool/command + error class. */ export declare function aggregateBridgeToolFailures(logText: string): Map; /** * Render the `### Recent AFT tool failures` markdown section from aggregated counts. */ export declare function formatRecentAftToolFailuresSection(counts: Map, options?: { maxClasses?: number; }): string; /** * Build the tool-failures section from the bridge log path (newest tail window). */ export declare function buildRecentAftToolFailuresSectionFromLog(logPath?: string, options?: { tailBytes?: number; maxClasses?: number; }): string; //# sourceMappingURL=bridge-tool-failures.d.ts.map