import type { AddressRules, StoredCustomer } from '../../ports/lookup.js'; import type { ConvertedRow, EntityValidator } from '../definition.js'; /** What an address row says. A blank cell is left out: "not provided". */ export interface AddressData { /** The customer's e-mail, as written. */ email?: string; /** The shared columns the row gives, trimmed and escaped as REST does. */ address: Record; extra?: Record; isDefault?: 0 | 1; } export type AddressRow = ConvertedRow; /** The reserved e-mail of the template's example rows (§ 5, ALL-18). */ export declare const ADDRESS_EXAMPLE_KEYS: readonly string[]; /** The columns of the file that are columns of an address. */ export declare const ADDRESS_VALUE_COLUMNS: readonly string[]; /** Everything that is remembered across the rows of an address file. */ export interface AddressState { /** The customer (e-mail in lower case) → the row of the first default address. */ defaultRow: Map; /** The e-mail in lower case → the customers of the store (none: not stored). */ stored: Map; rules: AddressRules | null; } /** The address a row gives, in the form the services take. */ export declare function addressOf(data: AddressData): Record; export declare const customerAddressValidator: EntityValidator;