/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Type } from "@sinclair/typebox";
import { EncodedModularChangesetV1 } from "./modularChangeFormatV1.js";
const noAdditionalProps = { additionalProperties: false };
const EncodedNoChangeConstraint = Type.Object({
    violated: Type.Boolean(),
}, noAdditionalProps);
export const EncodedModularChangesetV2 = Type.Composite([
    EncodedModularChangesetV1,
    Type.Object({
        /** Global no change constraint that gets violated whenever the changeset is rebased */
        noChangeConstraint: Type.Optional(EncodedNoChangeConstraint),
    }, noAdditionalProps),
], noAdditionalProps);
//# sourceMappingURL=modularChangeFormatV2.js.map