import type { LTEscalation } from '../../types'; import type { InterceptorState } from './types'; /** * Handle a workflow that returned { type: 'escalation' }. * * Creates an escalation record with full routing context so the * work can be resolved by a person or another AI — and the workflow * resumes exactly where it left off. * * Task lifecycle is the orchestrator's responsibility. The interceptor * only creates and resolves escalations linked to the parent task. * * The workflow ENDS here. Resolution starts a new workflow. */ export declare function handleEscalation(state: InterceptorState, result: LTEscalation): Promise; /** * Handle an unhandled error by converting it to an escalation. * * Same flow as handleEscalation, but constructs the LTEscalation * from the error — capturing the message and stack trace so the * resolver has full context. * * For MissingCredentialError, produces a categorized escalation with * `category: 'missing_credential'` so the UI can render actionable guidance. */ export declare function handleErrorEscalation(state: InterceptorState, err: Error): Promise;