import React__default from 'react'; import { OverridableStringUnion, OverrideProps } from '@mui/types'; import { FormControlUnstyledState } from '@mui/base/FormControlUnstyled'; import { ColorPaletteProp } from '../styles/types/colorSystem.js'; import { VariantProp } from '../styles/types/variants.js'; import { SxProps } from '../styles/types/theme.js'; import '@mui/system'; import '../styles/types/colorScheme.js'; import '../styles/types/focus.js'; import '../styles/types/shadow.js'; import '../styles/types/radius.js'; import '../styles/types/typography.js'; declare type TextareaSlot = "root" | "textarea" | "startDecorator" | "endDecorator"; interface TextareaPropsVariantOverrides { } interface TextareaPropsColorOverrides { } interface TextareaPropsSizeOverrides { } interface ComponentsProps { root?: SlotComponentProps<"div", { sx?: SxProps; }, TextareaOwnerState>; textarea?: SlotComponentProps<"textarea", { sx?: SxProps; }, TextareaOwnerState>; startDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, TextareaOwnerState>; endDecorator?: SlotComponentProps<"span", { sx?: SxProps; }, TextareaOwnerState>; label?: FormLabelProps; input?: Omit; helperText?: FormHelperTextProps; } declare type InputRootKeys = "autoComplete" | "autoFocus" | "onClick" | "color" | "onChange" | "onKeyDown" | "onKeyUp" | "onFocus" | "onBlur" | "defaultValue" | "value" | "placeholder" | "readOnly" | "required" | "name" | "id" | "disabled"; interface TextareaTypeMap

{ props: P & Pick, InputRootKeys> & { /** * The color of the component. It supports those theme colors that make sense for this component. * @default 'neutral' */ color?: OverridableStringUnion; /** * The props used for each slot inside the component. * @default {} */ components?: { Root?: React__default.ElementType; Label?: React__default.ElementType; Input?: React__default.ElementType; HelperText?: React__default.ElementType; }; componentsProps?: ComponentsProps; /** * Trailing adornment for this input. */ endDecorator?: React__default.ReactNode; /** * If `true`, the `input` will indicate an error. * The prop defaults to the value (`false`) inherited from the parent FormControl component. */ /** * The id of the `input` element. * Use this prop to make `label` and `helperText` accessible for screen readers. */ id?: string; /** * The label content. */ label?: React__default.ReactNode; error?: boolean; /** * Maximum number of rows to display. */ maxRows?: string | number; /** * Minimum number of rows to display. * @default 1 */ minRows?: string | number; /** * Leading adornment for this input. */ startDecorator?: React__default.ReactNode; /** * The size of the component. * @default 'md' */ size?: OverridableStringUnion<"sm", TextareaPropsSizeOverrides>; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; helperText?: React__default.ReactNode; /** * The variant to use. * @default 'outlined' */ variant?: OverridableStringUnion; }; defaultComponent: D; } declare type TextareaProps = OverrideProps, D>; interface TextareaOwnerState extends TextareaProps { /** * If `true`, the input is focused. */ focused: boolean; /** * The data from the parent form control. */ formControlContext: FormControlUnstyledState | undefined; } export { TextareaOwnerState, TextareaProps, TextareaPropsColorOverrides, TextareaPropsSizeOverrides, TextareaPropsVariantOverrides, TextareaSlot, TextareaTypeMap };