import { List, Map } from 'immutable'; import { getSchemaRefPlugin } from '@ui-schema/react/ReferencingHandler'; import { SchemaRootContext } from '@ui-schema/react/SchemaRootProvider'; import type { SomeSchema } from '@ui-schema/ui-schema/CommonTypings'; /** * Pending references, grouped by root id, with requested versions per-schema, * @example `#` for no-custom context `$id`: * ```json * { * '#': {'ref-url': ['*', 'version']}, * 'http://localhost/schema-1.json': {'schema-1b.json': ['*', '1.2']}, * } * ``` */ export type SchemaRefsPending = Map>>; /** * @deprecated use new validatorPlugin instead */ export interface ParseRefsContent { id?: string; defs?: SchemaRootContext['definitions']; root?: SomeSchema; getLoadedSchema?: getSchemaRefPlugin; } /** * @deprecated use new validatorPlugin instead */ export declare const parseRefs: (schema: SomeSchema, context: ParseRefsContent, recursive?: boolean, pending?: SchemaRefsPending) => { schema: SomeSchema; pending: SchemaRefsPending; };