import { RunnableConfig } from '@langchain/core/runnables'; import { StreamEvent } from '@langchain/core/tracers/log_stream'; import { CompiledGraph } from '@langchain/langgraph'; import { UiInterrupt } from './types'; /** * Handles human-in-the-loop interruptions and resumes a compiled LangGraph * once the UI provides a response. */ export declare class InterruptHandler { private graph; private readonly config; private resolveWait?; private rejectWait?; /** * Create a new InterruptHandler tied to a specific compiled graph and config. */ constructor(graph: CompiledGraph, config: RunnableConfig); /** * Returns a promise that resolves when the user provides a HITL response. */ waitForUser(): Promise>; /** * Resume graph execution after the UI responds to an interrupt. */ handle(interrupt: UiInterrupt, payload: unknown): void; /** * Abort the HITL wait and reject any pending continuation. */ cancel(): void; }