import * as React from 'react'; import { GetClasses } from '../../typeUtils'; import { BaseFormElement } from '../_private/forms'; export declare const TextFieldStylesKey = "ChromaTextField"; export declare const useStyles: (props?: any) => import("@mui/styles").ClassNameMap<"input" | "label" | "root" | "required" | "inputInverse" | "labelInverse" | "requiredInverse" | "errorMessage" | "helpMessage" | "tooltipContainer" | "labelSecondary" | "labelIcon" | "labelIconInverse" | "inputContainer" | "inputContainerFullWidth" | "inputHasAdornment" | "inputStartAdornment" | "inputEndAdornment" | "adornment" | "adornmentInverse" | "startAdornment" | "endAdornment" | "hasTrailer" | "inputError" | "inputErrorInverse" | "inputFullWidth" | "trailerMessage" | "errorMessageInverse" | "helpMessageInverse">; export declare type TextFieldClasses = GetClasses; export interface TextFieldProps extends React.ComponentPropsWithoutRef<'input'> { color?: BaseFormElement['color']; errorMessage?: BaseFormElement['errorMessage']; fullWidth?: boolean; hasError?: BaseFormElement['hasError']; helpMessage?: BaseFormElement['helpMessage']; icon?: React.MemoExoticComponent<(props: React.SVGProps) => JSX.Element>; label?: BaseFormElement['label']; secondaryLabel?: string; tooltipMessage?: string; startAdornment?: React.ReactNode; endAdornment?: React.ReactNode; /** This property shows the required asterisk (*). Required validation needs to be implemented separately. */ showRequiredLabel?: boolean; } /** * An input component for form usage. * * ### Accessibility * * - 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 has `type="text"` by default. * - 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/TextField/TextField.tsx) * - [Story Source](https://github.com/lifeomic/chroma-react/blob/master/stories/components/TextField/TextField.stories.tsx) */ export declare const TextField: React.ForwardRefExoticComponent>;