export declare class JSONContainer { /** * file path */ readonly path: string; protected __raw: T; constructor(json: T, filepath: string); get rawJSON(): T; /** * Generic way to get data in {@link __raw} * @param key * @param defaultValue * @returns */ getKey(key: K, defaultValue?: T[K]): T[K] | undefined; /** * Generic way to update the value in current jsons. * @param key * @param value * @param write whether write back to file */ update(key: K, value: T[K], write?: boolean): Promise; }