import { type TelephoneNumberFieldComponent } from '@defra/forms-model'; import { type StringSchema } from 'joi'; import { FormComponent } from '~/src/server/plugins/engine/components/FormComponent.js'; import { type ErrorMessageTemplateList, type FormPayload, type FormSubmissionError } from '~/src/server/plugins/engine/types.js'; export declare class TelephoneNumberField extends FormComponent { options: TelephoneNumberFieldComponent['options']; formSchema: StringSchema; stateSchema: StringSchema; constructor(def: TelephoneNumberFieldComponent, props: ConstructorParameters[1]); getViewModel(payload: FormPayload, errors?: FormSubmissionError[]): { type: string; label: { text: string; }; id: string; name: string; value: import("~/src/server/plugins/engine/types.js").FormValue; hint?: { id?: string; text: string; }; prefix?: import("./types.js").ComponentText; suffix?: import("./types.js").ComponentText; classes?: string; condition?: string; errors?: FormSubmissionError[]; errorMessage?: { text: string; }; summaryHtml?: string; html?: string; attributes: { autocomplete?: string; maxlength?: number; multiple?: string; accept?: string; inputmode?: string; }; content?: import("./types.js").Content | import("./types.js").Content[] | string; maxlength?: number; maxwords?: number; rows?: number; items?: import("./types.js").ListItem[] | import("./types.js").DateInputItem[]; fieldset?: { attributes?: string | Record; legend?: import("./types.js").Label; }; formGroup?: { classes?: string; attributes?: string | Record; }; showFieldsetError?: boolean; components?: import("./types.js").ComponentViewModel[]; upload?: { count: number; summaryList: import("~/src/server/plugins/engine/types.js").SummaryList; }; }; /** * 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; }