/** * JSON utility functions * Framework-agnostic JSON parsing and compilation */ export interface JSONCompileOptions { /** * Indentation string. If omitted, defaults to tabs */ indentation?: string; /** * If true, minify everything into one line */ small?: boolean; /** * Whether to add a newline character at the end of the file */ final_newline?: boolean; } /** * One-liner class for marking objects to be compiled on one line */ export declare class OneLiner { [key: string]: any; constructor(data?: any); } /** * Compile an Object into a JSON string * @param object JSON Object to compile * @param options Compile options * @returns JSON string */ export declare function compileJSON(object: any, options?: JSONCompileOptions): string; /** * Parse JSON with error handling * Framework-agnostic version (no UI dependencies) */ export interface ParseJSONOptions { /** * Strip JSON comments before parsing */ stripComments?: boolean; /** * Handle LZUTF8 compressed data */ handleCompression?: boolean; } /** * Parse JSON string with optional comment stripping */ export declare function parseJSON(data: string, options?: ParseJSONOptions): any; /** * Safe JSON parse (returns null on error instead of throwing) */ export declare function safeParseJSON(data: string, options?: ParseJSONOptions): any | null; /** * Stringify with custom formatting */ export declare function stringifyJSON(object: any, options?: JSONCompileOptions): string; /** * Deep clone using JSON (simple implementation) */ export declare function jsonClone(obj: T): T; //# sourceMappingURL=json.d.ts.map