/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Type } from "@sinclair/typebox";
import { JsonCompatibleReadOnlySchema } from "../util/index.js";
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function EncodedSharedTreeInnerChange(encodedSchemaSchema) {
    return Type.Object({
        schema: Type.Optional(encodedSchemaSchema),
        data: Type.Optional(JsonCompatibleReadOnlySchema),
    });
}
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
export function EncodedSharedTreeChange(encodedSchemaSchema) {
    return Type.Array(EncodedSharedTreeInnerChange(encodedSchemaSchema));
}
//# sourceMappingURL=sharedTreeChangeFormat.js.map