import type { Pausable } from "../use-pausable/index.js"; import type { UseRafLoopOptions } from "../use-raf-loop/index.js"; import type { AnyFunc, Gettable } from "../utils/basic.js"; export interface UseIntervalFnOptions extends Omit { } export type UseIntervalFnInterval = Gettable | 'requestAnimationFrame'; /** * A React Hook that create a function that will be called every `interval` milliseconds. * * @param callback The function to call. * @param interval The interval in milliseconds. If `0`, the interval is disabled. * @param options The options. */ export declare function useIntervalFn(callback: AnyFunc, interval?: UseIntervalFnInterval, options?: UseIntervalFnOptions): Pausable;