import type { TaskStoreDocument } from "../types.js";
import type { TaskStateEventV1 } from "../task-state-events/event-payloads.js";
import type { TaskStateProjectionV1 } from "../task-state-events/projection-types.js";
export type TaskStateSnapshotContentV1 = {
    schemaVersion: 1;
    projectionKind: "task-store-document";
    tasks: TaskStoreDocument["tasks"];
    transitions: TaskStoreDocument["transitionLog"];
    mutations?: TaskStoreDocument["mutationLog"];
};
export declare function documentFromSnapshotContent(content: TaskStateSnapshotContentV1): TaskStoreDocument;
export declare function projectionFromSnapshotContent(content: TaskStateSnapshotContentV1): TaskStateProjectionV1;
export declare function replayTailFromSnapshot(input: {
    snapshot: TaskStateSnapshotContentV1;
    throughSequence: number;
    tailEvents: TaskStateEventV1[];
}): {
    ok: true;
    document: TaskStoreDocument;
    projection: TaskStateProjectionV1;
} | {
    ok: false;
    code: string;
    message: string;
};
