import { C as ContentDocument } from "./content-BNUhgRbB.cjs"; import { DocumentTree } from "./package.cjs"; //#region src/schema-io.d.ts type DocumentSchemaKind = "DocumentTree" | "ContentDocument"; declare const SCHEMA_FILE_NAMES: Record; declare function schemaUriFor(kind: DocumentSchemaKind): string; declare function documentSchemaKindOf(value: unknown): DocumentSchemaKind | undefined; type DocumentTreeJson = DocumentTree & { readonly $schema: string; }; type ContentDocumentJson = ContentDocument & { readonly $schema: string; }; declare function documentTreeWithSchema(value: DocumentTree): DocumentTreeJson; declare function contentDocumentWithSchema(value: ContentDocument): ContentDocumentJson; declare class UnrecognizedDocumentSchemaError extends Error { readonly schema: unknown; constructor(schema: unknown); } declare class LayoutSchemaDemotedError extends Error { readonly schema: string; constructor(schema: string); } declare class DocumentPackageRenamedError extends Error { readonly schema: string; constructor(schema: string); } declare class SchemaVersionMismatchError extends Error { readonly schema: string; readonly dumpVersion: string; readonly installedVersion: string; constructor(schema: string, dumpVersion: string, installedVersion: string); } type DocumentJsonResult = { kind: "DocumentTree"; value: DocumentTree; } | { kind: "ContentDocument"; value: ContentDocument; }; declare function documentFromJson(value: unknown): DocumentJsonResult; //#endregion export { ContentDocumentJson, DocumentJsonResult, DocumentPackageRenamedError, DocumentSchemaKind, DocumentTreeJson, LayoutSchemaDemotedError, SCHEMA_FILE_NAMES, SchemaVersionMismatchError, UnrecognizedDocumentSchemaError, contentDocumentWithSchema, documentFromJson, documentSchemaKindOf, documentTreeWithSchema, schemaUriFor };