"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Format = exports.ForestFormatVersion = void 0;
const typebox_1 = require("@sinclair/typebox");
const index_js_1 = require("../../codec/index.js");
const index_js_2 = require("../../core/index.js");
const index_js_3 = require("../../util/index.js");
/**
 * The format version for the forest.
 */
exports.ForestFormatVersion = {
    v1: 1,
};
const FormatGeneric = (version) => typebox_1.Type.Object({
    version: typebox_1.Type.Literal(version),
    keys: typebox_1.Type.Array(index_js_2.schemaFormatV1.FieldKeySchema),
    fields: index_js_1.Versioned,
}, { additionalProperties: false });
exports.Format = FormatGeneric((0, index_js_3.brand)(exports.ForestFormatVersion.v1));
//# sourceMappingURL=format.js.map