export interface UseControllableStateProps { value?: T; defaultValue: T | (() => T); onChange?: (value: T) => void; } /** * `useControllableState` returns the state and function that updates the state, just like React.useState does. */ export declare function useControllableState({ value: valueProp, defaultValue, onChange, }: UseControllableStateProps): readonly [T, (next: React.SetStateAction) => void];