mcopy/app/lib/settings/index.d.ts

44 lines
621 B
TypeScript

/** @module lib/settings */
/**
* Class representing all settings features.
*/
export declare class Settings {
private file;
private defaultState;
state: any;
/**
*
**/
constructor();
private exists;
private freshState;
/**
*
**/
private checkDir;
/**
*
**/
save(): Promise<void>;
/**
*
**/
update(key: string, val: any): void;
/**
*
**/
get(key: string): any;
/**
*
**/
all(): any;
/**
*
**/
restore(): Promise<void>;
/**
*
**/
reset(): Promise<void>;
}