import { Dispatch, SetStateAction } from 'react'; /** * A custom hook that provides a state variable with a delayed update function. * The state will be updated after a specified delay when using the delayed setter. * * @param initialState - The initial state value or a function that returns the initial state. * @param delay - The delay in milliseconds before updating the state. * @returns An array containing the current state, a function to set the delayed state, * and a function to set the immediate state. */ export declare function useDelayedState(initialState: undefined, delay: number): [ state: S | undefined, setDelayedState: Dispatch>, setImmediateState: Dispatch> ]; export declare function useDelayedState(initialState: S | (() => S), delay: number): [state: S, setDelayedState: Dispatch>, setImmediateState: Dispatch>];