import { type Lineage } from "./asyncContext.js"; import type { RuntimeContext } from "./state/context.js"; import type { ThreadStore } from "./state/threadStore.js"; import type { GraphState, RunNodeCoreResult } from "./types.js"; /** The metadata key an attached debugger sets on its resumes and rewinds * when the run began in `runNode`, whose first leg would have fired * `onAgentEnd` had it not stopped. A resume the caller issued itself * fires nothing, with or without a debugger. */ export declare const ATTACHED_AGENT_END = "attachedAgentEnd"; export declare function firesAgentEnd(metadata: Record | undefined): boolean; /** `lineage` is the run's, read by the caller on its first line, before * any await, since the current run is only current until then. */ export declare function fireAgentEnd(execCtx: RuntimeContext, nodeName: string, returnObject: RunNodeCoreResult, threads: ThreadStore, lineage: Lineage): Promise;