import type { Branding } from "../../types.js"; export interface CredentialPageArgs { /** `"age"` / `"membership"` (built-ins) OR a custom credential id (007). */ kind: string; /** Order id, echoed back so verify is scoped to one order. */ order: string; /** Re-derived from the catalog (age gate). */ minimumAge?: number; /** Catalog-priced total, shown for context (never the token's). */ total?: number; currency?: string; /** Membership discount percent (membership gate). */ percent?: number; /** Custom credential (007): its `ui.label` — the card title / progress step. */ label?: string; /** Custom credential (007): its `ui.action` — the primary/demo button text. */ action?: string; /** Custom credential (007): the canonical positive claim the instant-demo button * presents (derived from the credential's requested claim leaves → true). Goes * through the SAME server-side `verify` as a real wallet presentation. */ demoClaims?: Record; /** Whether the instant-demo button can actually satisfy this credential's `verify` * (#59 finding 5). The demo synthesizes boolean-`true` for every requested claim leaf; * a credential whose `verify` checks a NON-boolean claim (e.g. `typeof license_no === * "string"`) can't be proven that way. Default true; the credential-gate route sets it * false for such a credential so the page disables the demo button with a clear note * instead of offering a tap that silently fails. */ demoAvailable?: boolean; /** * Where to send the buyer after this gate succeeds — the checkout hub, so the * sequence flows (hub → gate → back to hub with this gate ✓ → next gate). * Defaults to this server's `/checkout?order=`. */ returnUrl?: string; /** statelessOrders: the base64url cart mandate to carry back to `/checkout` so the * store-less hub can re-resolve this order. Appended to the default returnUrl. */ cart?: string; /** The order-derived progress rail HTML (from `checkoutRail`), built by the route which * holds the full re-priced order. Absent ⇒ no rail (never a hardcoded one). */ rail?: string; /** Host brand for this page (from `ctx.branding`). Absent ⇒ the built-in look. */ branding?: Branding; /** Browser-visible path prefix (from `ctx.basePath`) — every URL this page fetches or links * carries it. Absent ⇒ "" (served at the root). */ basePath?: string; /** * Where this page's two buttons POST/GET. Defaults to the order-scoped credential rail * (`/credentagent/credential/{request,verify}`). The grant-age rail (#172) points them at its * own grant-scoped routes so the SAME page, wallet flow and verify dispatch serve an age proof * captured on the approve page — one ceremony implementation, two entry points. */ endpoints?: { request?: string; verify?: string; }; /** Override the explanatory sentence under the title. The default speaks about the buyer's * CART, which is right at checkout and wrong on the grant-age rail (#172) — there is no cart * there, only a spending grant the human is about to approve. */ lede?: string; } export declare function renderCredentialPage(args: CredentialPageArgs): string;