export interface KeyFileStorage { [key: string]: any; [index: number]: any; (key: string | number, value: T, callback?: (error: any) => U): Promise; (key: string | number, callback?: (error: any, value?: T) => U): Promise; new (key: string | number, callback?: (error: any) => U): Promise; new (callback?: (error: any) => U): Promise; (callback?: (error: any) => U): Promise; } export default function createStore(storagePath: string, cache: { [x: string]: any; }): KeyFileStorage;