import * as React from 'react'; export interface IControlledStateOptions { defaultPropValue?: TProps[TProp]; defaultPropName?: TDefaultProp; } /** * Controlled state helper that gives priority to props value. Useful for components that have props with both * controlled and uncontrolled modes. Any props values will override state, but will not update internal state. * If prop is defined and then later undefined, state will revert to its previous value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param options - Options. defaultPropValue is only used if defaultPropName (or its value) is undefined. */ export declare function useControlledState(props: Readonly, propName: TProp, options?: IControlledStateOptions): [TProps[TProp] | undefined, React.Dispatch>]; /** * Simple controlled helper that gives priority to props value and falls back to derived value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param derivedValue - Derived value. Returned when controlled value is not present. */ export declare function getControlledDerivedProps(props: Readonly, propName: TProp, derivedValue: TProps[TProp]): TProps[TProp];