import { FlexDirectionProperty } from "csstype"; import * as React from "react"; import { ViewProps } from "../View"; export interface ToggleSwitchProps extends ViewProps { id?: string; name?: string; value?: boolean | string; defaultValue?: boolean | string; disabled?: boolean; size?: "lg" | "md" | "sm"; label?: string | React.ReactNode; description?: string | React.ReactNode; direction?: FlexDirectionProperty; inline?: boolean; onChange?: (evt: React.ChangeEvent) => void; } /** * The Toggle Switch turns a setting on or off immediately. */ declare class ToggleSwitch extends React.Component { static displayName: string; constructor(props: any); handleOnChange: () => void; render(): JSX.Element; } export default ToggleSwitch;