import { ReactElement, ReactNode } from 'react'; type Option = { label: string; value?: string | number; disabled?: boolean; options?: Array; }; export interface ControlSelectProps { id: string; options: Array; onChange: (value: string, id: string) => void; value?: string | number; label?: string; optional?: boolean; aside?: ReactNode; disabled?: boolean; validationError?: ReactNode; themeControlSelectContainer?: string; themeControlSelect?: string; themeControlWrapper?: string; themeLabel?: string; children?: ReactNode; } declare function ControlSelect({ id, onChange, options, value, label, optional, aside, disabled, validationError, themeControlSelectContainer, themeControlSelect, themeControlWrapper, themeLabel, children, ...props }: ControlSelectProps): ReactElement; declare namespace ControlSelect { var propTypes: { /** Identifying value for input element. */ id: any; /** An array of objects containing `label` `value` key value pairings to represent each option. An optional `disable` key can be provided to disable the selection of an indiviual ``. If `value` is not present but an `options` array is provided containing the same `label` `value` key value pairings, options will be grouped within a `` element as defined by `label` child key. Note that each `label` value must be unique. */ options: any; /** Called during changes to the input element. */ onChange: any; /** Input value */ value: any; /** Value passed to the label element. */ label: any; /** If provided the text, "(optional)" is appended to the value of the label element. */ optional: any; /** Additional content inserted alongside the label element. */ aside: any; /** Pass disabled attribute */ disabled: any; /** If provided, the value of this propery displays as an error message. */ validationError: any; /** Assembly classes to apply to the select element */ themeControlSelect: any; /** Assembly classes to apply to the select container */ themeControlSelectContainer: any; /** Assembly classes to apply to the control wrapper */ themeControlWrapper: any; /** Assembly classes to apply to the label element */ themeLabel: any; /** Custom display content. When provided, the native select is hidden and positioned absolutely over this content, which is rendered with pointer-events disabled. */ children: any; }; } export default ControlSelect;