import type { HumanEscalation, TaskGraph, AgentMessage, MemoryConflict, AuditEntry, TrustWindow, CollusionEvent, SafetyPolicy, StallReport } from './types.js'; export declare class HumanEscalationManager { private escalations; private policy; constructor(policy: SafetyPolicy); /** * Create an escalation from a safety threshold breach. */ escalateSafetyBreach(rule: string, currentValue: number, maxValue: number, context: EscalationContext): HumanEscalation; /** * Create an escalation from a collusion detection. */ escalateCollusion(event: CollusionEvent, context: EscalationContext): HumanEscalation; /** * Create an escalation from an unresolvable stall. */ escalateStall(stalls: readonly StallReport[], context: EscalationContext): HumanEscalation; /** * Create an escalation from trust collapse (too many demotions). */ escalateTrustCollapse(agentId: string, demotions: number, context: EscalationContext): HumanEscalation; /** * Record a human response to a pending escalation. */ resolve(escalationId: string, action: string, reasoning: string): boolean; /** Get all escalations. */ getAllEscalations(): readonly HumanEscalation[]; /** Get pending escalations. */ getPending(): readonly HumanEscalation[]; /** Check if there are any unresolved escalations. */ hasUnresolved(): boolean; private createEscalation; } export interface EscalationContext { readonly taskGraph: TaskGraph; readonly relevantMessages: readonly AgentMessage[]; readonly conflictingClaims: readonly MemoryConflict[]; readonly recentAudit: readonly AuditEntry[]; readonly trustSnapshots: readonly TrustWindow[]; readonly collusionEvents: readonly CollusionEvent[]; }