import { ReactElement, ReactNode } from 'react'; import { InputProps } from '../typings'; export interface ControlToggleSetProps { id: string; onChange: (value: string, id: string) => void; options: Array; value?: string; optional?: boolean; autoFocus?: boolean; validationError?: ReactNode; themeToggleContainer?: string; themeToggleGroup?: string; themeToggle?: string; themeControlWrapper?: string; } declare function ControlToggleSet({ id, options, onChange, value, optional, validationError, autoFocus, themeToggleGroup, themeToggleContainer, themeToggle, themeControlWrapper }: ControlToggleSetProps): ReactElement; declare namespace ControlToggleSet { var propTypes: { /** Identifying value for input element. */ id: any; /** Function that's called when text changes in the input element. Argument that's returned the id prop and value entered. */ onChange: any; /** An array of objects containing `label` `value` key value pairings to represent each option. Any additional keys are passed as props to the input. */ options: any; /** input value */ value: any; /** If provided, aria-required=true is added to the control element. */ optional: any; /** Add auto focus attributes. */ autoFocus: any; /** If provided, the value of this propery displays as an error message. */ validationError: any; /** Assembly classes to apply to the toggle group */ themeToggleGroup: any; /** Assembly classes to apply to the toggle container */ themeToggleContainer: any; /** Assembly classes to apply to the toggle element */ themeToggle: any; /** Assembly classes to apply to the control wrapper */ themeControlWrapper: any; }; } export default ControlToggleSet;