import React from 'react'; export declare function useControllableProp(prop: T | undefined, state: T): readonly [boolean, T]; export interface UseControllableStateProps { /** * The value to used in controlled mode */ value?: T; /** * The initial value to be used, in uncontrolled mode */ defaultValue?: T | (() => T); /** * The callback fired when the value changes */ onChange?: (value: T) => void; /** * The component name (for warnings) */ name?: string; } /** * React hook for using controlling component state. * @param props */ export declare function useControllableState(props: UseControllableStateProps): [T, React.Dispatch>];