/** * Modified copy of https://github.com/huozhi/bunchee/blob/main/src/lib/memoize.ts * * The MIT License (MIT) * * Copyright (c) 2018 these people -> https://github.com/huozhi/bunchee/graphs/contributors */ type CacheKeyResolver = string | ((...arguments_: any[]) => string); export declare const memoize: any>(function_: T, cacheKey?: CacheKeyResolver, // if you need specify a cache key cacheArgument?: Map>) => T; export declare const memoizeByKey: any>(function_: T) => ((cacheKey?: CacheKeyResolver) => T); export {};