import { type CacheHandler, type Metadata } from "@nimpl/cache"; export declare const cache: Promise>(callback: Callback, options: { key: string; duration?: Pick; cacheHandler: CacheHandler; }) => (...args: Params) => Promise>>; export declare const createCache: (cacheHandler: CacheHandler) => { cache: (callback: (...args: unknown[]) => Promise, options: { key: string; duration?: Pick; }) => (...args: unknown[]) => Promise; };