/** * This is a helper hook for creating a controlled or uncontrolled state. * ref: https://github.com/radix-ui/primitives/blob/main/packages/react/use-controllable-state/src/useControllableState.tsx * credit: radix-ui/primitives */ import * as React from "react"; type UseControllableStateParams = { prop?: T | undefined; defaultProp?: T | undefined; onChange?: (state: T) => void; }; declare function useControllableState({ prop, defaultProp, onChange, }: UseControllableStateParams): readonly [T | undefined, React.Dispatch>]; export { useControllableState }; //# sourceMappingURL=useControllableState.d.ts.map