export = memoize; /** @template T @typedef {function(): T} FunctionReturning */ /** * @template T * @param {FunctionReturning} fn memorized function * @returns {FunctionReturning} new function */ declare function memoize(fn: FunctionReturning): FunctionReturning; declare namespace memoize { export { FunctionReturning }; } type FunctionReturning = () => T;