import type { CeremonyContext } from "../mount.js"; import type { CeremonyOrder } from "../types.js"; import type { Origin } from "../origin.js"; import type { DcqlQuery } from "../../types.js"; export interface DelegatedRequestResult { protocol: "delegated-openid4vp"; /** The verifier-specific payload the browser forwards (e.g. `{ dcql, transaction_data, * nonce, verifierUrl }`). Opaque to the gate — forwarded, never interpreted. */ handoff: unknown; /** Sealed `{ reference, orderId }` the browser carries back to /verify. */ referenceToken: string; /** The adapter-declared browser contract, forwarded verbatim: the URL of the verifier's * own client script and the global entry point it defines. Absent ⇒ no browser step. */ clientScript?: string; clientEntry?: string; /** The combined query handed to the adapter (echoed for callers/tests). */ dcql_query: DcqlQuery; } /** * Build the delegated request for a re-priced order. Throws when no verifier is * configured — the caller (routes.ts) only serves this rail when `ctx.verifier` is * present, so reaching here without one is a programming error, not a gate decision. */ export declare function buildDelegatedRequest(ctx: CeremonyContext, order: CeremonyOrder, origin: Origin): Promise;