/** * Schema-viewer block: a data shape drawn as a tree from dotted field paths. * * `user.address.city` nests under `user` and `user.address`. A parent the * author did not list becomes an implicit object node. Children keep the * authored order of their first mention, so the tree is deterministic. Nodes * with children are native `
`, open by default, so the whole shape * reads without script and in print. */ import type { BlockModule } from '../../registry/block-module.js'; interface SchemaField { type: string; required: boolean; description: string; } interface SchemaNode { name: string; field: SchemaField | undefined; children: Map; } /** Build the tree from dotted paths; later duplicates and empty segments are skipped (a check reports them). */ export declare function buildSchemaTree(fields: readonly Record[]): SchemaNode; export declare const schemaViewerBlock: BlockModule; export {}; //# sourceMappingURL=schema-viewer.d.ts.map