import * as React from 'react'; import './style/index.less'; export type SwitchChangeEventHandler = (checked: boolean) => void; export type SwitchClickEventHandler = SwitchChangeEventHandler; export type SwitchType = 'primary' | 'danger' | 'warn'; export type SwitchSize = 'lg' | 'default' | 'sm'; interface BaseSwitchProps { className?: string; disabled?: boolean; size?: SwitchSize; checked?: boolean; defaultChecked?: boolean; onChange?: SwitchChangeEventHandler; onClick?: SwitchClickEventHandler; type?: SwitchType; value?: boolean; } declare const Switch: React.FC; export default Switch;