export declare type AsyncStoreSetItemResult = Promise & { hasCancel: boolean; hasDone: boolean; cancel: () => void; }; export declare class AsyncStore { private [Symbol.counter]; private [Symbol.dirpath]; private [Symbol.asyncStoreSetItemResults]; private constructor(); clear(): Promise; getItem(key: string): Promise; getObject(key: string): Promise; key(index: number): Promise; keys(): Promise; length(): Promise; removeItem(key: string): Promise; setItem(key: string, value: string): AsyncStoreSetItemResult; setObject(key: string, value: any): Promise; private keyToPath; static create(dirpath: string): AsyncStore; }