/**
 * @license chowa v1.1.3
 *
 * Copyright (c) Chowa Techonlogies Co.,Ltd.(http://www.chowa.cn).
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */
import * as React from 'react';
import * as PropTypes from 'prop-types';
export interface SwitchProps {
    className?: string;
    style?: React.CSSProperties;
    tabIndex?: number;
    label?: string;
    checked: boolean;
    disabled?: boolean;
    loading?: boolean;
    onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
    checkedChild?: React.ReactNode;
    uncheckedChild?: React.ReactNode;
}
export interface SwitchState {
    result: boolean;
}
declare class Switch extends React.PureComponent<SwitchProps, SwitchState> {
    static propTypes: {
        className: PropTypes.Requireable<string>;
        style: PropTypes.Requireable<object>;
        tabIndex: PropTypes.Requireable<number>;
        label: PropTypes.Requireable<string>;
        checked: PropTypes.Validator<boolean>;
        disabled: PropTypes.Requireable<boolean>;
        loading: PropTypes.Requireable<boolean>;
        onChange: PropTypes.Requireable<(...args: any[]) => any>;
        checkedChild: PropTypes.Requireable<PropTypes.ReactNodeLike>;
        uncheckedChild: PropTypes.Requireable<PropTypes.ReactNodeLike>;
    };
    static defaultProps: {
        tabIndex: number;
        checked: boolean;
        loading: boolean;
        disabled: boolean;
    };
    constructor(props: SwitchProps);
    componentDidUpdate(preProps: SwitchProps): void;
    private onChangeHandler;
    private onKeyDownHandler;
    render(): JSX.Element;
}
export default Switch;
