/** Multipaz Tools' ISO mdoc DeviceResponse viewer; the payload goes in the #fragment. */ export declare const INSPECTOR_URL = "https://tools.multipaz.org/mdocDeviceResponse"; /** Multipaz Tools' X.509 viewer — takes a base64url DER certificate in the #fragment. */ export declare const X509_URL = "https://tools.multipaz.org/x509"; /** Multipaz Tools' ISO 18013-7 / Digital Credentials verifier: it asks the wallet itself and runs * the Multipaz SDK's signature checks — an independent check, not this gate's. */ export declare const VERIFIER_URL = "https://tools.multipaz.org/verifier"; /** What a verify response carries under `presentation` when `inspectPresentations` is on. */ export interface InspectablePresentation { format: "mso_mdoc"; /** The decrypted ISO 18013-5 DeviceResponse the wallet presented (CBOR, base64url). */ deviceResponse: string; /** Opens `deviceResponse` in the inspector (decoded client-side; nothing is uploaded). */ inspectUrl: string; /** Opens the certificate that signed the credential (issuerAuth's x5chain leaf) in the X.509 * viewer — who the issuer claims to be. Absent when the credential carries no issuerAuth. */ issuerCertUrl?: string; } export declare function presentationForInspection(deviceResponse: string): InspectablePresentation; /** * The ONE door a verify result leaves through: always strips the raw `deviceResponse` * the verifier carried, and adds `presentation` only when the host opted in. Every * route that answers with a presentation result goes through here, so the bytes can't * leak out of a route that forgot to check the flag. */ export declare function inspectionResponse(out: T, inspectPresentations: boolean | undefined): Omit & { presentation?: InspectablePresentation; }; /** * The first DeviceResponse in an OpenID4VP `vp_token` — `{ "": "" }`, * `{ "": [""] }`, or the older bare array. Undefined when there is none. */ export declare function firstDeviceResponse(vpToken: unknown): string | undefined;