/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { Type } from "@sinclair/typebox";
import { Versioned } from "../../codec/index.js";
import { schemaFormatV1 } from "../../core/index.js";
import { brand } from "../../util/index.js";
/**
 * The format version for the forest.
 */
export const ForestFormatVersion = {
    v1: 1,
};
const FormatGeneric = (version) => Type.Object({
    version: Type.Literal(version),
    keys: Type.Array(schemaFormatV1.FieldKeySchema),
    fields: Versioned,
}, { additionalProperties: false });
export const Format = FormatGeneric(brand(ForestFormatVersion.v1));
//# sourceMappingURL=format.js.map