/** * Based on https://github.com/radix-ui/primitives/blob/8f75e5be679b9c269638bddf532a166d80edecb4/packages/react/use-controllable-state/src/useControllableState.tsx#L12 */ interface ControllableStateProps { controlledValue?: T; defaultValue?: T; onChange?: { func?: ({ type, data }: { type: U; data: any; }) => void; key: U; }; } declare const useControllableState: ({ controlledValue, onChange, defaultValue, }: ControllableStateProps) => [ T, React.Dispatch> ]; export default useControllableState; //# sourceMappingURL=useControllableState.d.ts.map