import React, { ChangeEvent, PureComponent } from 'react'; import { ThemeConfig } from '../../core/Theme'; import { HTMLInputProps } from '../../interfaces/props'; export declare type SwitchLabelType = ((checked: boolean) => React.ReactNode) | React.ReactNode; export interface SwitchProps { theme: ThemeConfig; disabled: boolean; checked: boolean; color: string; hoverColor: string; onChange?: (e: ChangeEvent) => boolean | void; inline?: boolean; labelComponent?: SwitchLabelType; children?: SwitchLabelType; inputAttributes?: HTMLInputProps; } export interface SwitchState { checked: boolean; } export declare class Switch extends PureComponent { static defaultProps: Partial; state: SwitchState; render(): JSX.Element; private changeChecked; }