import { AcurisClient } from "@acuris-geo/av-sdk"; import type { AcpAddress, AcpAddressCheck, AcpMessage, AcpOptions, Assessment } from "./types.js"; /** * Validate an ACP fulfillment address inside a merchant checkout-session * endpoint (POST /checkout_sessions and POST /checkout_sessions/{id}). * * const check = await validateAcpAddress(session.fulfillment_address, { apiKey }); * session.messages.push(...check.messages); * if (check.correctedAddress) session.fulfillment_address = check.correctedAddress; * * Only the codes `missing` and `invalid` are emitted — both exist in the * closed 2025-09-29 enum (ChatGPT Instant Checkout) and the 2026-04-17 enum, * so output is valid against either version. Targeting 2026-04-17 adds * `resolution: "recoverable"` so the agent knows it may retry via the API. */ export declare function validateAcpAddress(address: AcpAddress, options?: AcpOptions, clientOverride?: AcurisClient): Promise; /** Pure mapper: Assessment → ACP `messages[]` entries. Exported for custom flows. */ export declare function toAcpMessages(assessment: Assessment, basePath: string, version?: AcpOptions["version"], options?: AcpOptions): AcpMessage[]; /** ACP mandates ISO 3166-1 alpha-2. Returns Acuris ISO-3 lowercase. */ export declare function parseAcpCountry(country?: string): string | undefined; //# sourceMappingURL=acp.d.ts.map