import type { AddressRules } from '../services/ports/lookup.js'; /** * The address rules of the store (ยง 5.5) from core's own library: the countries * the registry knows, the extras registered for a country, and `validateAddress` * for the account surface. Only the seam differs between the real store, which * runs the processors of `customerAddressDataBeforeCreate`, and the test double, * which runs the store's normalizer directly; `extraIds` can be given for a * double that has registered nothing. */ export declare function createAddressRules(options: { normalize: (address: Record) => Promise>; extraIds?: (country: string) => readonly string[]; /** For a double: the countries the store sells to (the real store has its setting). */ sellToCountries?: 'all' | string[]; /** For a double: the name format (the real store has its setting). */ nameFormat?: () => 'single' | 'split'; }): AddressRules;