"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.EncodedSharedTreeChange = exports.EncodedSharedTreeInnerChange = void 0;
const typebox_1 = require("@sinclair/typebox");
const index_js_1 = require("../util/index.js");
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function EncodedSharedTreeInnerChange(encodedSchemaSchema) {
    return typebox_1.Type.Object({
        schema: typebox_1.Type.Optional(encodedSchemaSchema),
        data: typebox_1.Type.Optional(index_js_1.JsonCompatibleReadOnlySchema),
    });
}
exports.EncodedSharedTreeInnerChange = EncodedSharedTreeInnerChange;
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
function EncodedSharedTreeChange(encodedSchemaSchema) {
    return typebox_1.Type.Array(EncodedSharedTreeInnerChange(encodedSchemaSchema));
}
exports.EncodedSharedTreeChange = EncodedSharedTreeChange;
//# sourceMappingURL=sharedTreeChangeFormat.js.map