export declare function memoize(fn: (a: A) => B, cacheResultAsKey?: boolean, cache?: WeakMap): (a: A) => B;