import type { SharedFormFieldProps } from '../types/formfield.types.js'; /** * @public */ export declare const enum FormFieldAction { UPDATE = "update" } /** * @deprecated The FormField reducer is internal state — consumers should not * dispatch against it. This type and every field on it will be removed with * APPDEV-18318. Set `disabled` / `required` / `readOnly` / `aria-disabled` on * the form control directly, and pass `id` to the control rather than the * FormField. * @public */ export type FormFieldReducerActionPayload = { /** @deprecated Removed with APPDEV-18318. Pass `id` to the form control instead. */ id?: string; /** @deprecated Removed with APPDEV-18318. Set on the form control directly. */ disabled?: boolean; /** @deprecated Removed with APPDEV-18318. Set on the form control directly. */ required?: boolean; /** @deprecated Removed with APPDEV-18318. Set `aria-disabled` on the form control directly. */ ariaDisabled?: boolean; /** @deprecated Removed with APPDEV-18318. Set on the form control directly. */ readOnly?: boolean; }; /** * @deprecated The FormField reducer is internal state — consumers should not * dispatch against it. Removed with APPDEV-18318. * @public */ export type FormFieldReducerAction = { type: FormFieldAction.UPDATE; payload: FormFieldReducerActionPayload; }; /** * @internal * FormField reducer function used for managing the FormField state. */ export declare function _formFieldReducer(state: SharedFormFieldProps, action: FormFieldReducerAction): SharedFormFieldProps; //# sourceMappingURL=formfield-state-reducer.d.ts.map