import { type HiddenFieldComponent, type TextFieldComponent } from '@defra/forms-model'; import { type StringSchema } from 'joi'; import { FormComponent } from '~/src/server/plugins/engine/components/FormComponent.js'; import { type ErrorMessageTemplateList, type FormState, type FormStateValue, type FormSubmissionState } from '~/src/server/plugins/engine/types.js'; export declare class HiddenField extends FormComponent { formSchema: StringSchema; stateSchema: StringSchema; schema: TextFieldComponent['schema']; options: TextFieldComponent['options']; constructor(def: HiddenFieldComponent, props: ConstructorParameters[1]); getFormValueFromState(state: FormSubmissionState): NonNullable | undefined; isValue(value?: FormStateValue | FormState): value is string; /** * For error preview page that shows all possible errors on a component */ getAllPossibleErrors(): ErrorMessageTemplateList; /** * Static version of getAllPossibleErrors that doesn't require a component instance. */ static getAllPossibleErrors(): ErrorMessageTemplateList; }