import { type TreeSpecIssue, type TreeSpecWire } from '@signalsafe/tree-spec'; import type { DispatchResult, TreeSpecSessionSnapshot, TreeSpecSessionState } from './types.js'; export declare function createInitialTreeSpecSession(wire: TreeSpecWire): TreeSpecSessionState; /** * Apply one decision at the current node (same contract as `apply_decision` on the backend: node must match current). */ export declare function dispatchTreeSpecChoice(state: TreeSpecSessionState, nodeId: string, choiceId: string): DispatchResult; /** Serialize only the choices needed to replay a graph session; derived state is not trusted. */ export declare function serializeTreeSpecSession(state: TreeSpecSessionState): TreeSpecSessionSnapshot; /** Restore a session by replaying every recorded choice through the graph dispatcher. */ export declare function restoreTreeSpecSession(wire: TreeSpecWire, rawSnapshot: unknown): TreeSpecSessionState; /** Structural/runtime issues for editor UI (merge with lintTreeSpecWire). */ export declare function treeSpecRuntimeIssues(spec: TreeSpecWire): TreeSpecIssue[]; //# sourceMappingURL=session.d.ts.map