import { type SetStateAction, type Dispatch } from 'react'; /** @internal */ export interface useControllableStateProps { /** * The callback fired when the value changes. */ onChange?: (value: T) => void; /** * The controlled value to be used. */ value?: TInput; /** * The default value to be used when uncontrolled. */ defaultValue?: TInput | (() => T); } /** @internal */ export type useControllableStatePropsWithEmptyValue = useControllableStateProps & { /** * The value that a `null` value or default value stands for. It must not * be `undefined` or `null`, as both are read as "no empty value" and leave * `null` unchanged. */ emptyValue: NonNullable; }; /** * @internal * React hook for using controlling component state. */ export declare function useControllableState(props: useControllableStatePropsWithEmptyValue): [T, Dispatch>]; /** * @internal * React hook for using controlling component state. */ export declare function useControllableState(props: useControllableStateProps): [T, Dispatch>]; //# sourceMappingURL=useControllableState.d.ts.map