import { type KeyObject } from "node:crypto"; /** A P-256 key pair, with its public half as the JWK a `cnf` carries. */ export interface DevKeyPair { privateKey: KeyObject; publicJwk: { kty: "EC"; crv: "P-256"; x: string; y: string; }; } export declare function p256(): DevKeyPair; /** SD-JWT disclosure salts. */ export declare const saltGenerator: (n: number) => string; /** * A self-signed certificate for an issuer key, base64 DER for the JWS `x5c`. * * Not optional: a wallet will not read an SD-JWT VC without one, and neither does this package — * the issuer key is taken FROM the certificate. Mirrors `tools/demo-pki/mint/mint-dpc-sdjwt.mjs`. */ export declare function selfSignedCert(key: DevKeyPair, name: string): Promise; /** * Append a Delegate key binding to a presented credential (`~~`): the wallet's * signature over `sd_hash` and the delegate payload's digests. * * Built by hand rather than through `SDJwtInstance.present({ kb })`, because that path hardcodes * `typ: "kb+jwt"` and a Delegate key binding must be typed `kb+sd-jwt+kb` (§5.1.4) when its * mandates name the agent's key. Everything else is the JWS the library would have produced. */ export declare function delegateKeyBinding(args: { presented: string; holderKey: KeyObject; aud: string; nonce: string; /** What `delegate_payload` carries — normally `{ "...": digest }` per disclosure (§7.1). */ delegatePayload: unknown[]; typ?: string; /** The bytes `sd_hash` covers. Defaults to `presented`; a test passes others to break it. */ sdHashOver?: string; iat?: number; }): string;