import React from 'react'; import type { InputFieldBaseProps, InputProps } from '../TextField'; export interface Option { label: string; value: string; } export interface OptGroup { header: string; options: Option[]; } type Options = Array; interface SelectFieldProps extends InputFieldBaseProps { /** * If the form field is asking for information that fits one of the options in the spec, use pass it here. This is _required when applicable_ for accessibility purposes. https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill-field */ autoComplete?: 'honorific-prefix'; /** * The name of the select element, used when submitting an HTML form. */ name?: string; inlineAction?: never; /** * Options array. An option value cannot be an empty string, as that is reserved for the placeholder. */ options: Options; maxCharCount?: never; minCharCount?: never; } export type SelectFieldComponentProps = InputProps; export declare const SelectField: React.ForwardRefExoticComponent>; export {};