import { type EastingNorthingFieldComponent } from '@defra/forms-model';
import { type ObjectSchema } from 'joi';
import { ComponentCollection } from '../../../../server/plugins/engine/components/ComponentCollection.js';
import { FormComponent } from '../../../../server/plugins/engine/components/FormComponent.js';
import { type EastingNorthingState } from '../../../../server/plugins/engine/components/types.js';
import { type ErrorMessageTemplateList, type FormPayload, type FormState, type FormStateValue, type FormSubmissionError, type FormSubmissionState } from '../../../../server/plugins/engine/types.js';
export declare class EastingNorthingField extends FormComponent {
    options: EastingNorthingFieldComponent['options'];
    formSchema: ObjectSchema<FormPayload>;
    stateSchema: ObjectSchema<FormState>;
    collection: ComponentCollection;
    constructor(def: EastingNorthingFieldComponent, props: ConstructorParameters<typeof FormComponent>[1]);
    getFormValueFromState(state: FormSubmissionState): EastingNorthingState | undefined;
    getDisplayStringFromFormValue(value: EastingNorthingState | undefined): string;
    getDisplayStringFromState(state: FormSubmissionState): string;
    getContextValueFromFormValue(value: EastingNorthingState | undefined): string | null;
    getContextValueFromState(state: FormSubmissionState): string | null;
    getViewModel(payload: FormPayload, errors?: FormSubmissionError[]): {
        fieldset: {
            attributes?: string | Record<string, string>;
            legend?: import("../../../../server/plugins/engine/components/types.js").Label;
        };
        items: import("../../../../server/plugins/engine/components/types.js").DateInputItem[];
        label: import("../../../../server/plugins/engine/components/types.js").Label;
        type?: string;
        id: string;
        name: string;
        value: import("../../../../server/plugins/engine/types.js").FormValue;
        hint?: {
            id?: string;
            text: string;
        };
        prefix?: import("../../../../server/plugins/engine/components/types.js").ComponentText;
        suffix?: import("../../../../server/plugins/engine/components/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("../../../../server/plugins/engine/components/types.js").Content | import("../../../../server/plugins/engine/components/types.js").Content[] | string;
        maxlength?: number;
        maxwords?: number;
        rows?: number;
        formGroup?: {
            classes?: string;
            attributes?: string | Record<string, string>;
        };
        showFieldsetError?: boolean;
        components?: import("../../../../server/plugins/engine/components/types.js").ComponentViewModel[];
        upload?: {
            count: number;
            summaryList: import("../../../../server/plugins/engine/types.js").SummaryList;
        };
    } | {
        instructionText: string;
        fieldset: {
            attributes?: string | Record<string, string>;
            legend?: import("../../../../server/plugins/engine/components/types.js").Label;
        };
        items: import("../../../../server/plugins/engine/components/types.js").DateInputItem[];
        label: import("../../../../server/plugins/engine/components/types.js").Label;
        type?: string;
        id: string;
        name: string;
        value: import("../../../../server/plugins/engine/types.js").FormValue;
        hint?: {
            id?: string;
            text: string;
        };
        prefix?: import("../../../../server/plugins/engine/components/types.js").ComponentText;
        suffix?: import("../../../../server/plugins/engine/components/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("../../../../server/plugins/engine/components/types.js").Content | import("../../../../server/plugins/engine/components/types.js").Content[] | string;
        maxlength?: number;
        maxwords?: number;
        rows?: number;
        formGroup?: {
            classes?: string;
            attributes?: string | Record<string, string>;
        };
        showFieldsetError?: boolean;
        components?: import("../../../../server/plugins/engine/components/types.js").ComponentViewModel[];
        upload?: {
            count: number;
            summaryList: import("../../../../server/plugins/engine/types.js").SummaryList;
        };
    };
    getViewErrors(errors?: FormSubmissionError[]): FormSubmissionError[] | undefined;
    isState(value?: FormStateValue | FormState): value is EastingNorthingState;
    /**
     * 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;
    static isEastingNorthing(value?: FormStateValue | FormState): value is EastingNorthingState;
}
