/** * CLI Utility Functions */ /** * Safe file read with path validation * BUG-008 FIX: Enhanced error handling and resource cleanup */ export declare function safeReadFile(userPath: string, preprocess?: boolean): string; /** * Safe file write with path validation * BUG-008 FIX: Enhanced error handling and resource cleanup */ export declare function safeWriteFile(userPath: string, content: string): void; /** * Preprocess JSON to handle special characters in keys * BUG-NEW-005 FIX: Transform problematic keys (like #, @) to safe alternatives * to prevent parsing conflicts with TONL directives and comments */ export declare function preprocessJsonKeys(jsonString: string): string; /** * Calculate byte size */ export declare function byteSize(text: string): number; /** * Display statistics */ export declare function displayStats(originalBytes: number, originalTokens: number, tonlBytes: number, tonlTokens: number, filename: string): void; //# sourceMappingURL=utils.d.ts.map