import { CacheStoreWithTTL, NonParentCacheStoreWithTTL } from "."; export interface MemoryTTLStoreOpts { /** The approx. number of milliseconds to keep items */ ttl: number; /** * How often items should be cleared. * * Defaults to 5 minutes */ resolution?: number; /** * What sweep strategy to use. * * "activity" means the TTL is reset for every `set` OR `get` operation * "usage" means the TTL is only reset for the `get` operation * * Defaults to "usage" */ strategy?: "activity" | "usage" | "expiry"; } export declare const createNonParent: ({ ttl, resolution, strategy, }: MemoryTTLStoreOpts) => NonParentCacheStoreWithTTL; export declare const create: (opts: MemoryTTLStoreOpts) => CacheStoreWithTTL;