import type { MessageTarget } from '../../validation/message-routing.js'; import type { FormFieldControlMessage, FormFieldCustomMessage, FormFieldMessage, FormFieldMessageContextState } from '../types/formfield-messages.types.js'; export declare const enum FormFieldMessagesAction { ADDMESSAGE = "addmessage", REMOVEMESSAGE = "removemessage", DISABLEMESSAGE = "disablemessage", SETISTOUCHED = "setistouched", SETFORMCONTROLID = "setformcontrolid", SETMESSAGETARGET = "setmessagetarget", ADDMEMBERFORMCONTROLID = "addmemberformcontrolid", REMOVEMEMBERFORMCONTROLID = "removememberformcontrolid" } export type FormFieldMessagesReducerAction = { type: FormFieldMessagesAction.ADDMESSAGE; payload: (Omit | FormFieldCustomMessage) & { showError?: boolean; messageText?: string; }; } | { type: FormFieldMessagesAction.REMOVEMESSAGE; payload: Pick; } | { type: FormFieldMessagesAction.DISABLEMESSAGE; payload: { isDisabled: boolean | undefined; }; } | { type: FormFieldMessagesAction.SETISTOUCHED; payload: { isTouched: boolean; resetShowError?: boolean; }; } | { type: FormFieldMessagesAction.SETFORMCONTROLID; payload: { formControlId: string | undefined; }; } | { type: FormFieldMessagesAction.SETMESSAGETARGET; payload: { messageTarget: MessageTarget[] | undefined; }; } | { type: FormFieldMessagesAction.ADDMEMBERFORMCONTROLID; payload: { formControlId: string; }; } | { type: FormFieldMessagesAction.REMOVEMEMBERFORMCONTROLID; payload: { formControlId: string; }; }; /** FormFieldMessage reducer function used for managing FormFieldMessages and FormFieldCustomMessages. */ export declare function formFieldMessagesReducer(state: FormFieldMessageContextState, action: FormFieldMessagesReducerAction): FormFieldMessageContextState; //# sourceMappingURL=formfield-messages-state-reducer.d.ts.map