import { type DatePartsFieldComponent } from '@defra/forms-model';
import { type CustomValidator, type ObjectSchema } from 'joi';
import { ComponentCollection } from '../../../../server/plugins/engine/components/ComponentCollection.js';
import { FormComponent } from '../../../../server/plugins/engine/components/FormComponent.js';
import { type DateInputItem, type DatePartsState } 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 DatePartsField extends FormComponent {
    options: DatePartsFieldComponent['options'];
    formSchema: ObjectSchema<FormPayload>;
    stateSchema: ObjectSchema<FormState>;
    collection: ComponentCollection;
    constructor(def: DatePartsFieldComponent, props: ConstructorParameters<typeof FormComponent>[1]);
    getFormValueFromState(state: FormSubmissionState): DatePartsState | undefined;
    getDisplayStringFromFormValue(formValue: DatePartsState | undefined): string;
    getDisplayStringFromState(state: FormSubmissionState): string;
    getContextValueFromFormValue(value: DatePartsState | 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: DateInputItem[];
        label: {
            text: string;
        };
        id: string;
        name: string;
        value: import("../../../../server/plugins/engine/types.js").FormValue;
        type?: string;
        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;
        };
    };
    isState(value?: FormStateValue | FormState): value is DatePartsState;
    /**
     * 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 isDateParts(value?: FormStateValue | FormState): value is DatePartsState;
}
export declare function getValidatorDate(component: DatePartsField): CustomValidator;
