import type * as React from 'react'; import type { FormValidityHandle, FormValidityStateView } from '../utils/formControl.js'; import type { PrimitivePropsWithRef } from '../utils/primitive.js'; /** @internal Shared state distributed from {@link TextField} to its parts via context. */ export interface TextFieldContextValue { inputId: string; disabled: boolean; readOnly: boolean; invalid: boolean; required: boolean; value: string; setValue: (value: string) => void; /** Submitted under this key by the wrapped input; `undefined` submits nothing. */ name?: string | undefined; /** Id of the `