import React from 'react'; import { type AriaSwitchProps } from 'react-aria'; import type { TestIdProp } from '../../types'; export interface SwitchProps extends AriaSwitchProps, TestIdProp { 'aria-labelledby'?: AriaSwitchProps['aria-labelledby']; name?: AriaSwitchProps['name']; value?: AriaSwitchProps['value']; isDisabled?: AriaSwitchProps['isDisabled']; isSelected?: AriaSwitchProps['isSelected']; onChange?: AriaSwitchProps['onChange']; className?: string; /** * @deprecated use isDisabled instead */ disabled?: boolean; /** * @deprecated use isSelected instead */ toggled?: boolean; } /** * The Switch component should be used with a label. The text that describes the switch can be passed in as children * where it will be associated with the switch automatically. If it a more complex layout is and the text label is * located outside the component ensure that `` has an `id` and the label element has an `htmlFor` with that id. */ export declare const Switch: ({ className, disabled, toggled, isSelected, isDisabled, testId, ...incomingProps }: SwitchProps) => React.JSX.Element; //# sourceMappingURL=Switch.d.ts.map