serialize.d.ts
1 /** 2 * Stringify to YAML 3 */ 4 export declare function toYAML(obj: any): string; 5 /** 6 * Parse either YAML or JSON 7 */ 8 export declare function deserializeStructure(str: string): any; 9 /** 10 * Serialize to either YAML or JSON 11 */ 12 export declare function serializeStructure(object: any, json: boolean): string; 13 /** 14 * Load a YAML or JSON file from disk 15 */ 16 export declare function loadStructuredFile(fileName: string): Promise<any>;