import * as React from 'react'; import type { SemanticClassName } from "../_util/classNameUtils"; export type SwitchSize = 'small' | 'default'; export type SwitchChangeEventHandler = (checked: boolean, event: React.MouseEvent | React.KeyboardEvent) => void; export type SwitchClickEventHandler = SwitchChangeEventHandler; export interface SwitchProps { prefixCls?: string; size?: SwitchSize; className?: SemanticClassName<{ handle?: string; }, { disabled?: boolean; checked?: boolean; }>; checked?: boolean; defaultChecked?: boolean; onChange?: SwitchChangeEventHandler; onClick?: SwitchClickEventHandler; checkedChildren?: React.ReactNode; unCheckedChildren?: React.ReactNode; disabled?: boolean; loading?: boolean; autoFocus?: boolean; title?: string; tabIndex?: number; id?: string; /** * Alias for `checked`. */ value?: boolean; /** * Alias for `defaultChecked`. */ defaultValue?: boolean; } type CompoundedComponent = React.ForwardRefExoticComponent> & {}; declare const Switch: CompoundedComponent; export default Switch;