import type { Context } from "../context.ts"; import type { LaneState as DurableLaneState, LaneConfiguration, Session, SessionReader } from "../session/types.ts"; import { type StoredValue } from "../session/values.ts"; import type { LaneState } from "./types.ts"; export type ClassifiedLaneStorage = { kind: "absent"; } | { kind: "branch"; tip: StoredValue; } | { kind: "lane"; tip: StoredValue; configuration: StoredValue; laneState: StoredValue; }; export declare function readLaneStorage(reader: SessionReader, lane: string, context: Context): Promise; /** Restore every complete configured AgentLane in one coherent Session read. */ export declare function restoreSession(session: Session, context: Context): Promise>; /** Restore one configured lane without starting work or interpreting its state. */ export declare function restoreLane(session: Session, lane: string, context: Context): Promise; export declare function restoreLaneState(reader: SessionReader, lane: string, stored: Extract, context: Context): Promise; //# sourceMappingURL=restore.d.ts.map