import { OpenId4VcIssuerRecord } from "../openid4vc-issuer/repository/OpenId4VcIssuerRecord.mjs"; import "../openid4vc-issuer/repository/index.mjs"; import { AgentContext, Kms } from "@credo-ts/core"; import * as _openid4vc_oauth20 from "@openid4vc/oauth2"; import { ClientAuthenticationCallback, DecryptJweCallback, EncryptJweCallback, SignJwtCallback, VerifyJwtCallback } from "@openid4vc/oauth2"; //#region src/shared/callbacks.d.ts declare function getOid4vcJwtVerifyCallback(agentContext: AgentContext, options?: { trustedCertificates?: string[]; issuanceSessionId?: string; /** * Whether this verification callback should assume a JAR authorization is verified * Starting from OID4VP draft 24 the JAR must use oauth-authz-req+jwt header typ * but for backwards compatiblity we need to also handle the case where the header typ is different * @default false */ isAuthorizationRequestJwt?: boolean; }): VerifyJwtCallback; declare function getOid4vcEncryptJweCallback(agentContext: AgentContext): EncryptJweCallback; declare function getOid4vcDecryptJweCallback(agentContext: AgentContext): DecryptJweCallback; declare function getOid4vcJwtSignCallback(agentContext: AgentContext): SignJwtCallback; declare function getOid4vcCallbacks(agentContext: AgentContext, options?: { trustedCertificates?: string[]; isVerifyOpenId4VpAuthorizationRequest?: boolean; issuanceSessionId?: string; }): { hash: (data: Uint8Array, alg: _openid4vc_oauth20.HashAlgorithm) => Uint8Array; generateRandom: (length: number) => Kms.KmsRandomBytesReturn; signJwt: SignJwtCallback; clientAuthentication: () => never; verifyJwt: VerifyJwtCallback; fetch: typeof fetch; encryptJwe: EncryptJweCallback; decryptJwe: DecryptJweCallback; getX509CertificateMetadata: (certificate: string) => { sanDnsNames: string[]; sanUriNames: string[]; }; }; /** * Allows us to authenticate when making requests to an external * authorization server */ declare function dynamicOid4vciClientAuthentication(agentContext: AgentContext, issuerRecord: OpenId4VcIssuerRecord): ClientAuthenticationCallback; //#endregion export { dynamicOid4vciClientAuthentication, getOid4vcCallbacks, getOid4vcDecryptJweCallback, getOid4vcEncryptJweCallback, getOid4vcJwtSignCallback, getOid4vcJwtVerifyCallback }; //# sourceMappingURL=callbacks.d.mts.map