import type { Pausable } from "../use-pausable/index.js"; import { type AnyFunc, type Gettable } from "../utils/basic.js"; export interface UseTimeoutFnOptions { /** * Start the timer immediate after calling this function * * @defaultValue true */ immediate?: boolean; /** * Render the component immediately when the timer ends * * When you need `isActive` ref to be updated immediately after the timer ends, set this to `true` * * @defaultValue false */ updateOnEnd?: boolean; } /** * A React Hook that helps to create a timeout function. */ export declare function useTimeoutFn(callback: Callback, interval: Gettable, options?: UseTimeoutFnOptions): Pausable<[], Parameters>;