import { AddressFieldsLayoutConfig, CheckoutProfile } from '../../../types/checkout/CheckoutProfile.type'; import { AddressData } from '../../../types/common/FormData.type'; import { Component } from '../../Component'; type AddressFieldName = keyof AddressData; interface AddressSectionOptions { type: 'billing' | 'shipping'; title: string; checkoutProfile: CheckoutProfile; fieldsConfig: AddressFieldsLayoutConfig; values: AddressData; errors: Partial>; touched: Partial>; onChange: (event: Event) => void; onBlur: (event: Event) => void; translationFunc: (key: string) => string; locale?: string; grouped?: boolean; } export declare class AddressSection extends Component { private inputs; private type; private onChange; private onBlur; private fieldsContainer; private translationFunc; private locale?; private grouped; private currentCountry; private stateRow; private stateFieldConfig?; private groupMessage; private groupMessages; private stateStyles?; constructor(options: AddressSectionOptions); private borderRadius; private createFields; private createRow; private createInput; private createCountrySelect; private handleCountryChange; private rebuildStateField; private clearStateValue; private createStateSelect; private createUngroupedFields; getValue(field: AddressFieldName): string; getValues(): AddressData; setValue(field: AddressFieldName, value: string): void; setValues(values: Partial): void; setError(field: AddressFieldName, error: boolean, errorMsg?: string): void; /** * Marks a field valid or invalid and puts its message where the layout has * room for it: under the field itself when the fields stand apart, or in the * block's shared message row when they are grouped. */ private applyFieldError; /** One shared row, so the first invalid field in the block speaks for it. */ private renderGroupMessage; updateField(field: AddressFieldName, value: string, error: string | undefined, touched: boolean): void; updateAllFields(values: AddressData, errors: Partial>, touched: Partial>): void; focus(): void; } export {}; //# sourceMappingURL=AddressSection.d.ts.map