/*!
 * 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 { EncodedSharedBranch, EditManagerFormatVersion } from "./editManagerFormatCommons.js";
const noAdditionalProps = { additionalProperties: false };
export const EncodedEditManager = (tChange) => Type.Object({
    version: Type.Literal(EditManagerFormatVersion.vSharedBranches),
    originator: SessionIdSchema,
    main: EncodedSharedBranch(tChange),
    branches: Type.Optional(Type.Array(EncodedSharedBranch(tChange))),
}, noAdditionalProps);
/* eslint-enable @typescript-eslint/explicit-function-return-type */
//# sourceMappingURL=editManagerFormatVSharedBranches.js.map