import { TreeListNode } from '@stoplight/tree-list'; import { JsonPath } from '@stoplight/types'; import { JSONSchema4 } from 'json-schema'; import { SchemaNode } from '../types'; export interface ITreeNodeMetaSchema { path: JsonPath; schemaNode: SchemaNode; schema: JSONSchema4; } export interface ITreeNodeMetaError { path: JsonPath; error: string; } export declare type TreeNodeMeta = ITreeNodeMetaSchema | ITreeNodeMetaError; export declare const metadataStore: WeakMap, TreeNodeMeta>; export declare const getNodeMetadata: (node: TreeListNode) => TreeNodeMeta; export declare const getSchemaNodeMetadata: (node: TreeListNode) => ITreeNodeMetaSchema;