/** * 受控/非受控组件设置和变更某个状态值 * * @template T * @param {T} defaultPropValue 该状态的默认值 * @param {T} [propValue] 该状态的值 * @returns {{ * currentState: T 当前的状态值 * updateCurrentState: (val: T) => void 更新当前状态值的方法 * }} */ declare function useControlledProp(defaultPropValue: T, propValue?: T): { currentState: T; updateCurrentState: (val: T) => void; }; export default useControlledProp;