import type { Branding } from "../../types.js"; export interface IntentSignPageArgs { /** The grant id — scopes the /request + /verify calls. */ grantId: string; merchant: string; budget: number; perSpend: number; allow?: { skus?: string[]; categories?: string[]; }; description?: string; /** Where to send the human after the grant authorizes (absent ⇒ just show "done"). */ returnUrl?: string; branding?: Branding; /** The progress rail for this grant's steps (#172), rendered by `grants.serve`. Absent ⇒ none. */ rail?: string; /** Optional step cards shown ABOVE the signature (#172) — the wallet credentials the human may * present before signing. They belong above it because what they prove is part of what they * sign: the proofs are inside `canonicalIntentBounds`, so the signature covers them. */ steps?: string; /** Browser-visible path prefix — the /sign/request + /sign/verify calls carry it. Absent ⇒ "". */ basePath?: string; /** * The age-restricted items this signature will NOT cover, because the human has not proved an * age that reaches them (#172). Absent ⇒ nothing is withheld and the button reads plainly. * * The signed mandate omits those products (`grants._allowedSkusFor`), so saying "Sign with your * wallet" over a page that just listed them by name would misdescribe what is being signed. * `blocking` is the case where NOTHING remains — a grant whose every product is restricted. * There is no mandate to mint then, so the signature is not offered at all until the age step * is done. That is a statement about what can be authorized, not a security control: the * refusal lives in `spend()`, which steps up on an uncovered item however this page renders. */ withheld?: { minimumAge: number; blocking: boolean; }; } export declare function renderIntentSignPage(args: IntentSignPageArgs): string;