/** * Memoize a function based on its arguments. * * @param fn - The function to memoize * @param getKey - Optional function to generate cache key from arguments * @returns A memoized version of the function with cache control methods */ export declare function useMemoize(_fn: (..._args: Args) => T, getKey?: (...args: Args) => string): ((...args: Args) => T) & { load: (...args: Args) => T delete: (...args: Args) => void clear: () => void cache: Map };