/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Type } from "@sinclair/typebox";
import { SessionIdSchema } from "../core/index.js";
import { SequencedCommit, SummarySessionBranch, } from "./editManagerFormatCommons.js";
const noAdditionalProps = { additionalProperties: false };
export const EncodedEditManager = (tChange) => Type.Object({
    version: Type.Union([
        Type.Literal(1),
        Type.Literal(2),
        Type.Literal(3),
        Type.Literal(4),
    ]),
    trunk: Type.Array(SequencedCommit(tChange)),
    branches: Type.Array(Type.Tuple([SessionIdSchema, SummarySessionBranch(tChange)])),
}, noAdditionalProps);
/* eslint-enable @typescript-eslint/explicit-function-return-type */
//# sourceMappingURL=editManagerFormatV1toV4.js.map