UNPKG

763 BTypeScriptView Raw
1import type { AnySchema, AnySchemaObject, UriResolver } from "../types";
2import type Ajv from "../ajv";
3import type { URIComponents } from "uri-js";
4export declare type LocalRefs = {
5 [Ref in string]?: AnySchemaObject;
6};
7export declare function inlineRef(schema: AnySchema, limit?: boolean | number): boolean;
8export declare function getFullPath(resolver: UriResolver, id?: string, normalize?: boolean): string;
9export declare function _getFullPath(resolver: UriResolver, p: URIComponents): string;
10export declare function normalizeId(id: string | undefined): string;
11export declare function resolveUrl(resolver: UriResolver, baseId: string, id: string): string;
12export declare function getSchemaRefs(this: Ajv, schema: AnySchema, baseId: string): LocalRefs;