/** * A memoization wrapper with ttl expiration for cache hits. * * @param function * the function to be memoized * * @param ttl * time to live for the cache in milliseconds * * @returns * last response from a function if called again with same props * before ttl interval has passed. * * If you only need basic debounce, see @slimio/util/debounce */ export declare const memoize: Memoize; type Fnc = (...args: any) => any; type Memoize = { (fn: F, ttl: number): F; cache: Map; }; export {};