/** * Error thrown when the fetched reference is not properly formatted JSON or is encoded * incorrectly * * @example * ```typescript * * import Dereferencer, { NonJsonRefError } from "@json-schema-tools/dereferencer"; * const dereffer = new Dereferencer({}); * try { await dereffer.resolve(); } * catch(e) { * if (e instanceof NonJsonRefError) { ... } * } * ``` * */ export declare class NonJsonRefError implements Error { message: string; name: string; constructor(obj: any, nonJson: string); } export declare class NotResolvableError implements Error { message: string; name: string; constructor(ref: string); } /** * Error thrown when given an invalid file system path as a reference. * */ export declare class InvalidRemoteURLError implements Error { message: string; name: string; constructor(ref: string); } /** * Error thrown when given an invalid file system path as a reference. * * @example * ```typescript * * import Dereferencer, { InvalidFileSystemPathError } from "@json-schema-tools/dereferencer"; * const dereffer = new Dereferencer({}); * try { await dereffer.resolve(); } * catch(e) { * if (e instanceof InvalidFileSystemPathError) { ... } * } * ``` * */ export declare class InvalidFileSystemPathError implements Error { name: string; message: string; constructor(ref: string); }