import { BasicStorage } from "../interfaces.js"; export declare function cache({ lifespan, storage, storageKey, load, }: { lifespan: number; storage: BasicStorage; storageKey: string; load: () => Promise; }): { read(): Promise; readFresh(): Promise; readCache(): Promise; write(payload: xPayload): Promise; clear(): Promise; };