import * as React from 'react'; import { FormItem, IFormItemProps, IFormItemStates } from './common/FomItem'; export interface ISwitchProps extends Omit { value: '0' | '1' | undefined; oldValue: '0' | '1' | undefined; } export declare class Switch extends FormItem { static defaultProps: { value: string; oldValue: undefined; name: undefined; error: undefined; comparing: boolean; disabled: boolean; onValueChanged: () => undefined; customValidate: () => undefined; innerClass: undefined; }; render(): React.JSX.Element; validate(option?: { silentValidation?: boolean | undefined; }): string | undefined; protected valueToDisplayValue(value: string | null | undefined): string; private onSwitchChanged; }