import React, { ReactNode, ComponentProps } from 'react'; import { ColorPropsValue, DivProps, Size } from '../../types'; export interface SwitchProps extends Omit { /** 内部使用实现 */ inputProps?: ComponentProps<'input'>; color?: ColorPropsValue; size?: Size; /** 滑块 */ thumbSize?: number; thumbProps?: DivProps; renderThumb?: ReactNode | ((checked: boolean, thumbProps: DivProps) => ReactNode); /** 轨道 */ trackSize?: number; trackProps?: DivProps; renderTrack?: ReactNode | ((checked: boolean, trackProps: DivProps) => ReactNode); checkedLabel?: ReactNode; unCheckedLabel?: ReactNode; defaultChecked?: boolean; checked?: boolean; onChange?(checked: boolean): void; readOnly?: boolean; disabled?: boolean; } export declare const Switch: React.MemoExoticComponent<({ inputProps, color, size, thumbSize, thumbProps, renderThumb, trackSize, trackProps, renderTrack, checkedLabel, unCheckedLabel, defaultChecked, checked, onChange, readOnly, disabled, ...props }: SwitchProps) => import("@emotion/react/jsx-runtime").JSX.Element>;