export default function memoize(fn: (arg: string) => V): (arg: string) => V;