import React from 'react'; import { CSS } from '../utils/objectToCss'; interface Props { size?: 'sm' | 'lg'; children?: React.ReactNode; defaultSelected?: boolean; isSelected?: boolean; onChange?: (isSelected: boolean) => void; value?: string; name?: string; isDisabled?: boolean; isReadOnly?: boolean; validationState?: 'valid' | 'invalid'; isRequired?: boolean; onFocus?: (e: React.FocusEvent) => void; onBlur?: (e: React.FocusEvent) => void; onFocusChange?: (isFocused: boolean) => void; onKeyDown?: (e: React.KeyboardEvent) => void; onKeyUp?: (e: React.KeyboardEvent) => void; excludeFromTabOrder?: boolean; autoFocus?: boolean; 'aria-controls'?: string; 'aria-label'?: string; 'aria-labelledby'?: string; 'aria-describedby'?: string; 'aria-details'?: string; 'aria-errormessage'?: string; className?: string; css?: CSS; } export type ToggleProps = Props & Omit, keyof Props>; declare const Toggle: React.ForwardRefExoticComponent, keyof Props> & React.RefAttributes>; export default Toggle;