/** * NOTE: ex. If type is TResult | ((...args: TArgs) => TResult), return "the only" function that returns the TResult. */ declare function toCallable(maybeFn: undefined | TResult | ((...args: TArgs) => TResult)): (...args: TArgs) => TResult; export declare const functionUtil: { throttle: ({ interval }: { interval: number; }, func: (...args: TArgs) => any) => { (...args: TArgs): void; isThrottled(): boolean; }; debounce: ({ delay }: { delay: number; }, func: (...args: TArgs) => any) => { (...args: TArgs): void; cancel(): void; isPending(): boolean; flush(...args: TArgs): void; }; toCallable: typeof toCallable; }; export {};