import type { Dispatch, MutableRef, StateUpdater } from "../dependencies/types"; type ReferenceStateResult = readonly [ MutableRef, Dispatch> ]; /** * Same as `useState`, but returns the value in a reference to use it in callbacks without having to regenerate them. * * @param value Initial value. * @returns A couple containing the reference to the current state value, and the state updater function. */ export declare function useReferencedState(value: T | (() => T)): ReferenceStateResult; export declare function useReferencedState(): ReferenceStateResult; export {};