export declare function memoWithMap(bufferLength: number, fn: (...args: T) => Promise, keyFunction?: (args: T) => string): (...args: T) => Promise;