import { type NodeDefinition, type Edge, type ChannelSchema, type ONIConfig, type ONIStreamEvent, type StreamMode, type InterruptConfig, type ONICheckpointer, type ONICheckpoint } from "../types.js"; import { DeadLetterQueue, type DeadLetter } from "../dlq.js"; import type { BaseStore } from "../store/index.js"; import { HITLSessionStore } from "../hitl/index.js"; import { EventBus } from "../events/bus.js"; import type { GuardrailsConfig } from "../guardrails/types.js"; import type { EventListeners } from "../events/types.js"; import { AuditLog } from "../guardrails/audit.js"; import { BudgetTracker } from "../guardrails/budget.js"; import { ONITracer, type TracerLike } from "../telemetry.js"; import type { CustomStreamEvent, MessageStreamEvent } from "../types.js"; export declare class ONIPregelRunner> { private readonly nodes; private readonly edges; private readonly channels; private readonly interruptConfig; private readonly checkpointer; private readonly store; private readonly defaults?; private readonly dlq; private hitlStore; private nodeCache; private circuitBreakers; /** Count of concurrent subgraph invocations active on this runner. >0 means running as subgraph. */ _subgraphRef: { count: number; }; /** Per-invocation parent updates from Command.PARENT, keyed by parent threadId. */ readonly _perInvocationParentUpdates: Map[]>; /** Per-invocation checkpointer override for subgraph isolation, keyed by threadId. */ readonly _perInvocationCheckpointer: Map; /** Monotonic counter for unique per-invocation subgraph keys (BUG-0082: per-instance, not module-level). */ private _nextInvocationId; readonly eventBus: EventBus; readonly auditLog: AuditLog | null; readonly budgetTracker: BudgetTracker | null; private readonly contentFilters; private readonly toolPermissions; readonly tracer: ONITracer; /** Pre-indexed edges by source node — O(1) lookup instead of O(n) filter */ private readonly _edgesBySource; /** Pre-computed ephemeral channel keys — avoids iterating all channels */ private readonly _ephemeralKeys; constructor(nodes: Map>, edges: Edge[], channels: ChannelSchema, interruptConfig?: InterruptConfig, checkpointer?: ONICheckpointer | null, store?: BaseStore | null, guardrails?: GuardrailsConfig, listeners?: EventListeners, defaults?: { nodeTimeout?: number; } | undefined, dlq?: DeadLetterQueue | null, tracer?: TracerLike | null); private get _ctx(); _stream(input: Partial, config?: ONIConfig, streamMode?: StreamMode | StreamMode[]): AsyncGenerator | CustomStreamEvent | MessageStreamEvent>; invoke(input: Partial, config?: ONIConfig): Promise; stream(input: Partial, config?: ONIConfig & { streamMode?: StreamMode | StreamMode[]; }): AsyncGenerator | CustomStreamEvent | MessageStreamEvent>; batch(inputs: Partial[], config?: ONIConfig): Promise; getState(config: { threadId: string; }): Promise; updateState(config: { threadId: string; }, update: Partial): Promise; getStateAt(config: { threadId: string; step: number; }): Promise; getHistory(config: { threadId: string; }): Promise[]>; forkFrom(config: { threadId: string; step: number; newThreadId: string; }): Promise; getPendingInterrupts(threadId: string): import("../hitl/resume.js").HITLSession[]; hitlSessionStore(): HITLSessionStore; getDeadLetters(threadId: string): DeadLetter[]; } //# sourceMappingURL=index.d.ts.map