/** * Remote JWK Sets, fetched within fixed bounds, and the did:web issuers that * locate them. Grant-token and decision-grant verification read keys through * here when the caller sets `boundedJwksFetch: true`. The option is off by * default until a major release turns it on, with `false` as the opt-out; * without it, verification keeps JOSE's plain `createRemoteJWKSet` and the * earlier `issuerDid` handling. */ import { type RemoteJWKSet } from 'jose'; /** Largest JWK Set response read, in bytes, measured after content decoding. */ export declare const JWKS_MAX_BYTES: number; /** Most keys a JWK Set may hold. */ export declare const JWKS_MAX_KEYS = 128; /** Deadline for the whole fetch, headers and body, in milliseconds. */ export declare const JWKS_FETCH_TIMEOUT_MS = 5000; /** * A JOSE remote key set for `url`, fetched within `JWKS_MAX_BYTES`, * `JWKS_MAX_KEYS` and `JWKS_FETCH_TIMEOUT_MS`. JOSE's cache, cooldown and * unknown-`kid` refresh are unchanged (10 minutes, 30 seconds). */ export declare function createBoundedRemoteJWKSet(url: URL): RemoteJWKSet; /** * The JWKS URL and expected issuer for a `did:web` issuer. * * did:web Method Specification §2.3 (Method-specific identifier): a fully * qualified domain name that MUST NOT include IP addresses, an optional port * whose colon MUST be percent-encoded, and optional path segments delimited * by colons. §2.5.2 (Read): replace ":" with "/", then percent-decode the * port's colon. The key set is read from `/.well-known/jwks.json` under that * location, as before, rather than from its `did.json`. * * §3.5 (International Domain Names): DID Core syntax allows no Unicode in a * method-specific identifier, so an internationalized domain appears in its * IDNA A-label (`xn--`) form (RFC 5890 §2.3.2.1). Any other non-ASCII * character is refused rather than mapped: UTS #46 mapping would fetch keys * from a host the DID does not spell (the Kelvin sign becomes "k", "。" * becomes "."), while the expected issuer keeps the original spelling. * * The DID decides whose keys are trusted, so anything the method does not * allow, and any host that names this machine or a private network, is * refused before a request is made. The Python SDK applies the same checks in * the same order. * * @throws {GrantexTokenError} if `issuerDid` is not such an identifier. */ export declare function resolveDidWebIssuer(issuerDid: string): { jwksUri: string; issuer: string; }; //# sourceMappingURL=jwks.d.ts.map