import React from 'react'; import { ClassNames, ExternalStyles, Theme } from '../../styles'; import { Omit } from '../../util'; import { InputProps } from '../Input'; export interface SwitchProps extends Omit, 'onChange' | 'style'> { label?: string; name?: InputProps['name']; disabled?: InputProps['disabled']; onChange?: InputProps['onChange']; value?: InputProps['value']; defaultValue?: InputProps['defaultValue']; checked?: InputProps['checked']; defaultChecked?: InputProps['defaultChecked']; style?: ExternalStyles; } export declare function Switch(props: SwitchProps): JSX.Element; export declare const createStyles: (theme: Theme) => { switch: React.CSSProperties; knob: React.CSSProperties; text: React.CSSProperties; }; export declare const createInputStyles: (theme: Theme, classes: ClassNames<'switch' | 'knob' | 'text'>) => { wrapper: React.CSSProperties; input: React.CSSProperties; };