import { type Dispatch } from 'react'; import { FormFieldReducerAction } from '../state/formfield-state-reducer.js'; import type { SharedFormFieldProps } from '../types/formfield.types.js'; /** * @public */ export interface SharedFormFieldContextProps extends SharedFormFieldProps { dispatch?: Dispatch; /** @internal */ formFieldId?: string; /** * Logical form-control id registered against this FormField. * @internal */ formControlId?: string; /** * Native/member input ids belonging to the logical form control. * @internal */ memberFormControlIds?: string[]; /** * Registers a logical form-control id and returns an unregister callback for * React effect cleanup. Custom context consumers may omit this — * `useFormFieldContext` falls back to a noop. * @internal */ registerFormControlId?: (id: string) => () => void; /** * Registers a native/member input id and returns an unregister callback for * React effect cleanup. Custom context consumers may omit this — * `useFormFieldContext` falls back to a noop. * @internal */ registerMemberFormControlId?: (id: string) => () => void; /** @internal */ formFieldLabelId?: string; /** * Registers a label id and returns an unregister callback for React effect * cleanup. Custom context consumers may omit this — `useFormFieldContext` * falls back to a noop. * @internal */ registerFormFieldLabelId?: (id: string) => () => void; } /** * @internal * Context provider for `FormField` props meant to be provided to all its input-related child nodes. */ export declare const _FormFieldContext: import("react").Context; //# sourceMappingURL=FormFieldContext.d.ts.map