export type ValueUpdateListener = (val: string) => void;
export type Persist = {
    getLocation(): string;
    getItem(key: string): string | void;
    getItemAsync(key: string): Promise<string | void>;
    setItem(key: string, value: string): void;
    setItemAsync(key: string, value: string): Promise<void>;
    deleteItem(key: string): void;
    deleteItemAsync(key: string): Promise<void>;
    subscribe(key: string, listener: ValueUpdateListener): string;
    unsubscribe(id: string): boolean;
};
export declare function MakePersistence(location: string): Persist;
