import { type NodeName, type Edge, type ChannelSchema, type ONIConfig, type ONIStreamEvent } from "../types.js"; import type { PendingSend } from "./types.js"; export declare function buildInitialState>(channels: ChannelSchema): S; export declare function applyUpdate>(channels: ChannelSchema, current: S, update: Partial): S; export declare function resetEphemeral>(state: S, ephemeralKeys: (keyof S)[], channels: ChannelSchema): S; export declare function getNextNodes>(fromNode: NodeName, state: S, edgesBySource: Map[]>, config?: ONIConfig): { nodes: NodeName[]; sends: PendingSend[]; }; export declare function checkDynamicInterrupt>(node: string, timing: "before" | "after", state: S, config?: ONIConfig): void; export declare function evt>(event: ONIStreamEvent["event"], data: Partial | S, step: number, agentId?: string, node?: string): ONIStreamEvent; //# sourceMappingURL=state-helpers.d.ts.map