import { type TaskStateEventAdmissionError } from "../task-state-events/event-admission.js";
import type { CanonicalStateEventV1 } from "../task-state-events/canonical-state-events.js";
import type { PlanningStateProjectionV1 } from "../task-state-events/planning-projection-types.js";
import type { TaskStateProjectionV1 } from "../task-state-events/projection-types.js";
import type { TaskStateGitManifestV1 } from "./types.js";
/** Replay planning.* events from the full remote JSONL (not snapshot tail only). */
export declare function replayPlanningProjectionFromRawEvents(rawEvents: unknown[]): PlanningStateProjectionV1;
/** Admit remote JSONL events; lifecycle events require the bootstrap snapshot as replay seed. */
export declare function admitRemoteEventStream(workspacePath: string, ref: string, manifest: TaskStateGitManifestV1, rawEvents: unknown[]): {
    ok: true;
    events: CanonicalStateEventV1[];
} | {
    ok: false;
    error: TaskStateEventAdmissionError;
};
export declare function readRemoteSnapshotProjection(workspacePath: string, ref: string, tipSha: string): TaskStateProjectionV1 | null;
export declare function readRemoteTaskVersionMap(workspacePath: string, ref: string, tipSha: string): Map<string, number>;
export declare function expectedVersionsForPublish(_storeVersions: Record<string, number>, remoteVersions: Map<string, number>, taskIds: Iterable<string>): Record<string, number>;
