import type { DelayOptions } from "../types"; /** * Returns a deferred version of the provided `value` by a given delay `duration`. If the `duration` is `undefined`, immediately returns the actual value. * Changes to the `duration` or the delay `options` will cancel the delayed invocation, if any, and call it again with the new parameters. * * @param value Current value. * @param duration The delay at which to update the value. * @param options The delay options. * @returns The deferred value. */ export declare function useDefer(value: T, duration?: number, options?: DelayOptions): T;