import { Delegation, DelegationRequest, DelegationResponse, Receipt, StorageConfig } from "@kya-os/contracts/registry"; /** * Delegation management for XMCP-I runtime */ export interface DelegationManager { /** * Issue a new delegation */ issue(request: DelegationRequest): Promise; /** * Revoke an existing delegation */ revoke(delegationRef: string): Promise; /** * Check if a delegation is active */ isActive(delegationRef: string): Promise; /** * Get delegation details */ get(delegationRef: string): Promise; /** * List active delegations for a subject */ listBySubject(subject: string): Promise; } /** * Default delegation manager implementation */ export declare class DefaultDelegationManager implements DelegationManager { private config; constructor(config?: Partial); issue(request: DelegationRequest): Promise; revoke(_delegationRef: string): Promise; isActive(delegationRef: string): Promise; get(delegationRef: string): Promise; listBySubject(_subject: string): Promise; /** * Encrypt delegation payload for audience */ private encryptDelegation; } /** * Create delegation manager instance */ export declare function createDelegationManager(config?: Partial): DelegationManager; /** * Delegation context for runtime use */ export interface DelegationContext { delegationRef?: string; scopes: string[]; audience?: string; expiresAt: number; } /** * Extract delegation context from proof metadata */ export declare function extractDelegationContext(delegationRef?: string): DelegationContext | null;