export interface ThrottleOptions { wait?: number; leading?: boolean; trailing?: boolean; } declare type noop = (...args: any) => any; declare function useThrottleFn(fn: T, options?: ThrottleOptions): { run: T; cancel: () => void; flush: () => ReturnType | undefined; }; export default useThrottleFn;