32 lines
689 B
TypeScript
32 lines
689 B
TypeScript
export declare type TKeyValueStore = 'path' | 'gitProject' | 'custom';
|
|
export declare class KeyValueStore {
|
|
type: TKeyValueStore;
|
|
identity: string;
|
|
filePath: string;
|
|
constructor(typeArg: TKeyValueStore, customStringArg?: string);
|
|
/**
|
|
* reads a keyValueFile from disk
|
|
*/
|
|
read(): void;
|
|
/**
|
|
* writes a key value file to disk
|
|
*/
|
|
write(): void;
|
|
/**
|
|
* wipes a key value store from disk
|
|
*/
|
|
wipe(): void;
|
|
/**
|
|
* updates a value
|
|
*/
|
|
update(): void;
|
|
/**
|
|
* computes the identity
|
|
*/
|
|
private initIdentity(customStringArg);
|
|
/**
|
|
* computes the filePath
|
|
*/
|
|
private initFilePath();
|
|
}
|