import * as React from 'react'; export declare function useConditionallyControlledState(value: T | undefined, onChange: ((value: T) => void) | undefined, initialValue: T): [T, React.Dispatch>];