/** * Delegation Audience Validation * * Validates if a delegation's audience matches the server DID. * Supports both single server DID and multiple server DIDs. * * @package @kya-os/mcp-i-core/delegation */ import type { DelegationRecord } from "@kya-os/contracts/delegation"; /** * Verify if a delegation's audience matches the server DID * * @param delegation - Delegation record to check * @param serverDid - Server DID to verify against * @returns true if delegation is valid for this server * * @example * ```typescript * // Delegation without audience - valid on any server * verifyDelegationAudience(delegation, "did:web:server1.com") // true * * // Delegation with matching audience * verifyDelegationAudience(delegation, "did:web:server1.com") // true * * // Delegation with non-matching audience * verifyDelegationAudience(delegation, "did:web:server2.com") // false * * // Delegation with array audience containing server * verifyDelegationAudience(delegation, "did:web:server1.com") // true * ``` */ export declare function verifyDelegationAudience(delegation: DelegationRecord, serverDid: string): boolean; //# sourceMappingURL=audience-validator.d.ts.map