1 | import 'cross-fetch/polyfill';
|
2 | import { Schema } from './jsonSchema';
|
3 | export default class ReferenceResolver {
|
4 | private readonly schemaCache;
|
5 | private readonly referenceCache;
|
6 | dereference(refId: string): Schema;
|
7 | getAllRegisteredSchema(): IterableIterator<Schema>;
|
8 | resolve(): Promise<void>;
|
9 | registerRemoteSchema(url: string): Promise<void>;
|
10 | registerSchema(schema: Schema): void;
|
11 | private addSchema(schema);
|
12 | private addReference(refId);
|
13 | clear(): void;
|
14 | }
|