import React, { ElementType } from 'react'; import { Props } from '../../types'; declare let DEFAULT_SWITCH_TAG: "button"; interface SwitchRenderPropArg { checked: boolean; } declare type SwitchPropsWeControl = 'id' | 'role' | 'tabIndex' | 'aria-checked' | 'onClick' | 'onKeyUp' | 'onKeyPress'; export declare function Switch(props: Props & { checked: boolean; onChange(checked: boolean): void; className?: ((bag: SwitchRenderPropArg) => string) | string; }): React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)> | null; export declare namespace Switch { var Group: = React.ExoticComponent<{ children?: React.ReactNode; }>>(props: Props) => JSX.Element; var Label: = "label">(props: Props) => React.ReactElement React.ReactElement | null) | (new (props: any) => React.Component)> | null; } interface LabelRenderPropArg { } declare type LabelPropsWeControl = 'id' | 'ref' | 'onClick'; export {};