/** * State that is controlled when `value` is defined and uncontrolled * otherwise. The setter always calls `onChange` (only when the value actually * changes) and only stores the value itself in the uncontrolled case. */ export declare function useControllableState(value: T | undefined, defaultValue: T, onChange?: (value: T) => void): [T, (next: T) => void];