export declare class oneLiner { constructor(data: any); } interface JSONCompileOptions { /** * Indentation string. If omitted, will default to the indentation from Blockbench's settings */ indentation?: string; /** * If true, minify everything into one line */ small?: boolean; /** * Whether to add a newline character at the end of the file. If omitted, use value from Blockbench settings */ final_newline?: boolean; } /** * 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; interface FeedbackOptions { file_path?: string; } /** * Parse JSON file, while stripping away comments, and optionally showing potential syntax errors to the user in a popup * @param data Input string * @param feedback Whether to notify the user of syntax errors. Default is true * @returns Parsed data */ export declare function autoParseJSON(data: string, feedback?: boolean | FeedbackOptions): any; declare const global: { oneLiner: typeof import("./json").oneLiner; compileJSON: typeof import("./json").compileJSON; autoParseJSON: typeof import("./json").autoParseJSON; }; declare global { /** * Wrapper for anys that tells the custom JSON exporter to write in one line */ const oneLiner: new (data?: T) => T; /** * Compile text into JSON based on the minification settings */ const autoStringify: (data: any) => string; const compileJSON: typeof global.compileJSON; const autoParseJSON: typeof global.autoParseJSON; } export {};