interface UseCacheOptions {
    expiryTime?: number;
    encryptData?: boolean;
}
export declare function useCache<T>(key: string, initialValue: T, options?: UseCacheOptions): {
    value: T;
    setCache: (newValue: T) => Promise<void>;
    removeFromCache: () => Promise<void>;
    clearCache: () => Promise<void>;
    loading: boolean;
    error: Error | null;
};
export {};
//# sourceMappingURL=useCache.d.ts.map