/**
 * CodexLens route utilities.
 *
 * CodexLens CLI can emit logging + ANSI escapes even with --json, so helpers
 * here normalize output for reliable JSON parsing.
 */
/**
 * Strip ANSI color codes from string.
 * Rich library adds color codes even with --json flag.
 */
export declare function stripAnsiCodes(str: string): string;
/**
 * Format file size to human readable string.
 */
export declare function formatSize(bytes: number): string;
/**
 * Extract JSON from CLI output that may contain logging messages.
 * CodexLens CLI outputs logs like "INFO ..." before the JSON.
 * Also strips ANSI color codes that Rich library adds.
 * Handles trailing content after JSON (e.g., "INFO: Done" messages).
 */
export declare function extractJSON(output: string): any;
//# sourceMappingURL=utils.d.ts.map