import * as React from 'react'; import { StyleProps } from './style'; export type SwitchButtonProps = StyleProps & { checked: boolean; onChange?: (e: any) => void; id: string; readOnly?: boolean; autoFocus?: boolean; leftText?: string; rightText?: string; }; export interface SwitchButtonState { checked?: boolean; } declare class SwitchButton extends React.PureComponent { constructor(props: SwitchButtonProps); componentWillReceiveProps(nextProps: SwitchButtonProps): void; handleChange(e: any): void; getLabel(side: 'left' | 'right'): JSX.Element; render(): JSX.Element; } export default SwitchButton;