export declare const isJSON: (str: string) => boolean; export declare const SafeJSON: Pick; /** * 安全的json读写类 * ```ts * // usage * const file = new RCManager('./config.json') * file.set('token', 'xxx') * file.get('token') * file.delete('token') * ``` */ export declare class RCManager { private path; constructor(path: string); get(key?: string): Promise; getSync(key?: string): any; set(key: string, value: any): Promise; setSync(key: string, value: any): void; delete(key: string): Promise; deleteSync(key: string): void; }