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