import * as React from 'react'; import { GetClasses } from '../../typeUtils'; import { BaseFormElement } from '../_private/forms'; import { SelectOptionProps, SelectSecondaryAction } from './SelectOption'; import { MotionStyle } from 'framer-motion'; export declare const testIds: { placeholderText: string; }; export declare const SelectStylesKey = "ChromaSelect"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"button" | "label" | "option" | "ul" | "popover" | "root" | "rotate" | "required" | "labelInverse" | "srOnly" | "requiredInverse" | "tooltipContainer" | "labelSecondary" | "labelIcon" | "labelIconInverse" | "buttonInverse" | "buttonError" | "buttonArrowContainer" | "buttonText" | "placeholderText" | "comboBoxPlaceholder" | "comboxBoxOverflow" | "buttonFullWidth" | "arrowIcon" | "chipList" | "chip" | "message">; export declare type SelectClasses = GetClasses; export interface SelectProps extends Pick, Pick, 'disabled'>, Pick, 'className' | 'id' | 'value'> { ['aria-label']?: string; children?: React.ReactNode; secondaryAction?: SelectSecondaryAction; secondaryLabel?: string; fullWidth?: boolean; icon?: React.MemoExoticComponent<(props: React.SVGProps) => JSX.Element>; onChange?: (value: string, meta: any) => void; placeholder?: string; placement?: 'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-end' | 'bottom' | 'bottom-start' | 'left-end' | 'left' | 'left-start'; popoverAriaLabel?: string; selectedOptionDisplay?: (option: SelectOptionProps) => string | null | undefined | React.ReactNode; tooltipMessage?: string; /** This property shows the required asterisk (*). Required validation needs to be implemented separately. */ showRequiredLabel?: boolean; popoverStyle?: MotionStyle; } /** * An accessible select component. If you need a multi-select component, see ComboBox. * * ### Accessibility * * - When the select menu is open, the arrow keys on a user's keyboard can be used * to navigate between options. * - The Escape key closes the open menu. * - Pressing the Enter key "clicks" the option. * - A checkmark is read with the selected menu option. * - The label and input are "connected" via a uniqueId and the `for` + `id` * attributes. * - The label has the `aria-hidden` attribute so it cannot be focused by * screenreaders. Instead, the input element receives the focus, and the label is * read as part of the input. * - The component uses a uniqueId to link the input to the help and error messages * via `aria-describedby`. This allows screenreaders to read the help and error * messages. * - The icon has `aria-hidden` and `role="img"` attributes. * * ### Links * * - [Component Source](https://github.com/lifeomic/chroma-react/blob/master/src/components/Select/Select.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/Select/Select.stories.tsx) */ export declare const Select: React.FC;