export type Cache = ReturnType<typeof createCache>;
export declare enum CacheType {
    auto = "auto",
    memory = "memory",
    local = "local"
}
export type CacheOptions = {
    type?: CacheType;
    prefix?: string;
} & LocalForageOptions;
/**
 * 创建缓存实例
 * @param parse
 */
export default function createCache(options?: CacheOptions): {
    getItem: (key: string) => Promise<any>;
    setItem: (key: string, value: any, expires?: number) => Promise<void>;
    removeItem: (key: string) => Promise<void>;
    clear: () => Promise<void>;
    keys: () => Promise<string[]>;
};
