import { JSONSchema } from "@json-schema-tools/meta-schema"; export interface ProtocolHandlerMap { [protocol: string]: (uri: string, root: JSONSchema) => Promise; } export default class ReferenceResolver { protocolHandlerMap: ProtocolHandlerMap; constructor(protocolHandlerMap: ProtocolHandlerMap); /** * Given a $ref string, it will return the underlying pointed-to value. * For remote references, the root object is not used. */ resolve(ref: string, root?: JSONSchema): Promise; }