export declare function json2type(path?: string): Promise;