/** * Delegation Credential Verification * * Provides functions to verify delegation credentials that allow * users to grant agents permission to act on their behalf with specific scopes. */ import * as jose from 'jose'; import type { DelegationCredential, VerifyDelegationOptions, DelegationVerificationResult } from '@belticlabs/kya-core'; /** * Media type for DelegationCredential JWTs. */ export declare const DELEGATION_TYP = "application/beltic-delegation+jwt"; /** * Verify a delegation credential JWT. * * @param jwt - The JWT to verify * @param publicKey - Public key or JWKS for verification * @param options - Verification options * @returns Verification result with the credential if valid */ export declare function verifyDelegation(jwt: string, publicKey: jose.KeyLike | jose.JWK, options?: VerifyDelegationOptions): Promise; /** * Check if a delegation credential is expired. */ export declare function isDelegationExpired(credential: DelegationCredential, clockSkewSeconds?: number): boolean; /** * Check if a delegation credential is not yet valid. */ export declare function isDelegationNotYetValid(credential: DelegationCredential, clockSkewSeconds?: number): boolean; //# sourceMappingURL=delegation.d.ts.map