/** * A hook that manages controlled and uncontrolled state patterns. * Handles both controlled (value prop) and uncontrolled (defaultValue prop) modes. * * @param controlledValue - The controlled value from props * @param defaultValue - The default value for uncontrolled mode * @param onChange - Callback function when value changes * @returns A tuple of [currentValue, setValue] similar to useState */ export declare function useControlledState(controlledValue: T | undefined, defaultValue: T | undefined, onChange: ((value: T) => void) | undefined): [T | undefined, (value: T) => void];