/** * Browser shim for @apidevtools/json-schema-ref-parser. * The original library uses Node.js file system APIs for dereferencing. * In the browser, we provide implementations that resolve internal $ref * references (those starting with #/) without file system access. */ type Schema = any; /** * Exported dereferenceInternal for @readme/openapi-parser compatibility. */ export declare function dereferenceInternal(schema: Schema, _options?: object): Promise; /** * Browser-compatible dereference that resolves internal $ref references. */ export declare function dereference(_basePathOrSchema: string | object, schemaOrOptions?: object, _options?: object): Promise; /** * Browser-compatible bundle that returns the input unchanged. */ export declare function bundle(_basePathOrSchema: string | object, schemaOrOptions?: object, _options?: object): Promise; /** * Browser-compatible parse that returns the input unchanged. */ export declare function parse(_basePathOrSchema: string | object, schemaOrOptions?: object, _options?: object): Promise; /** * Browser-compatible resolve that returns the input unchanged. */ export declare function resolve(_basePathOrSchema: string | object, schemaOrOptions?: object, _options?: object): Promise; /** * Stub for MissingPointerError */ export declare class MissingPointerError extends Error { constructor(message?: string); } /** * Stub for $RefParser class used by @readme/openapi-parser and @apidevtools/swagger-parser * Must be a proper constructor function for util.inherits compatibility */ export declare function $RefParser(this: RefParserInstance): void; interface RefParserInstance { schema: Schema; $refs: { circular: boolean; paths: () => string[]; values: () => Record; get: (path: string) => Schema | undefined; }; } /** * Get default options for json-schema-ref-parser */ export declare function getJsonSchemaRefParserDefaultOptions(): object; /** * Options constructor for swagger-parser compatibility * swagger-parser does: util.inherits(ParserOptions, $RefParserOptions) */ interface OptionsInstance { parse: object; resolve: object; dereference: object; [key: string]: unknown; } export declare function Options(this: OptionsInstance, options?: object): void; export { Options as $RefParserOptions }; /** * Normalize arguments for parser methods (used by swagger-parser) */ export declare function normalizeArgs(args: IArguments | unknown[]): { path: string; schema: Schema; options: object; callback?: (err: Error | null, result?: Schema) => void; }; export default $RefParser;