import * as React from 'react'; import { Primitive } from '@radix-ui/react-primitive'; type PrimitiveButtonProps = React.ComponentPropsWithoutRef; interface ToggleProps extends PrimitiveButtonProps { /** * The controlled state of the toggle. */ pressed?: boolean; /** * The state of the toggle when initially rendered. Use `defaultPressed` * if you do not need to control the state of the toggle. * @defaultValue false */ defaultPressed?: boolean; /** * The callback that fires when the state of the toggle changes. */ onPressedChange?(pressed: boolean): void; } declare const Toggle: React.ForwardRefExoticComponent>; declare const Root: React.ForwardRefExoticComponent>; export { Root, Toggle, type ToggleProps };