import type { Origin } from "../origin.js"; import { type CredentialDcqlOpts, type CredentialKind } from "./dcql.js"; import type { DcqlQuery, ReaderIdentity } from "../../types.js"; export interface SignedCredentialRequest { protocol: "openid4vp-v1-signed"; /** The ES256-signed OpenID4VP request JWT (real). */ request: string; /** The DCQL embedded in the signed request (echoed for callers/tests). */ dcql_query: DcqlQuery; /** Sealed reader context (ECDH key + nonce) carried to /verify. */ readerContextToken: string; trust_level: "presence-only-demo"; } /** Build the REAL signed OpenID4VP request descriptor for one built-in credential kind. */ export declare function buildCredentialRequest(kind: CredentialKind, origin: Origin, secret: string, opts?: CredentialDcqlOpts, readerIdentity?: ReaderIdentity): Promise; /** * The credential-agnostic core (007): sign a REAL OpenID4VP request embedding an * ARBITRARY DcqlQuery. The built-in `buildCredentialRequest` is a thin wrapper that * supplies the age/membership DCQL; the generalized rail passes a custom credential's * OWN `request` here. The crypto — reader cert, ephemeral ECDH key, sealed nonce, * ES256 signature, origin/RP binding — is identical to the built-in path (invariant 6); * only the source of the DCQL differs. trust_level stays presence-only-demo. A stable * `readerIdentity` (#51), when supplied, is presented instead of a self-signed cert. */ export declare function buildSignedRequestForDcql(dcql: DcqlQuery, origin: Origin, secret: string, readerIdentity?: ReaderIdentity): Promise;