import { Task, TaskOnce } from 'taskbuffer'; export declare type TKeyValueStore = 'path' | 'gitProject' | 'custom'; /** * kvStore is a simple key vlaue store to store data about projects between runs */ export declare class KeyValueStore { dataObject: any; deletedObject: any; initialReadTask: TaskOnce; syncTask: Task; type: TKeyValueStore; identity: string; filePath: string; /** * the constructor of keyvalue store * @param typeArg * @param customStringArg */ constructor(typeArg: TKeyValueStore, customStringArg: string); /** * reads all keyValue pairs at once and returns them */ readAll(): Promise; /** * reads a keyValueFile from disk */ read(keyArg: string): Promise; /** * writes a key value file to disk */ write(keyValueObject: any): Promise; /** * wipes a key value store from disk */ wipe(): Promise; /** * updates a value */ update(keyObject: any): Promise; /** * computes the identity */ private initFilePath(); }