import { Component } from 'omi'; import { StyledProps, TNode } from '../common'; import { SwitchValue, TdSwitchProps } from './type'; export type SwitchChangeEventHandler = (value: boolean, event: MouseEvent) => void; export type SwitchClickEventHandler = SwitchChangeEventHandler; export interface SwitchProps extends TdSwitchProps, StyledProps { } export default class Switch extends Component { static propTypes: { value: (NumberConstructor | StringConstructor | BooleanConstructor)[]; defaultValue: (NumberConstructor | StringConstructor | BooleanConstructor)[]; label: (ArrayConstructor | FunctionConstructor)[]; disabled: BooleanConstructor; loading: BooleanConstructor; size: StringConstructor; customValue: ArrayConstructor; onChange: FunctionConstructor; }; constructor(); innerChecked: Omi.SignalValue; get contentNode(): TNode; get isControlled(): boolean; onInternalClick(e: MouseEvent): void; install(): void; receiveProps(news: any, old: any): boolean; render(props: SwitchProps): TNode; }