UNPKG

655 BTypeScriptView Raw
1import type { AnySchema, AnySchemaObject } from "../types";
2import type Ajv from "../ajv";
3import * as URI 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(id?: string, normalize?: boolean): string;
9export declare function _getFullPath(p: URI.URIComponents): string;
10export declare function normalizeId(id: string | undefined): string;
11export declare function resolveUrl(baseId: string, id: string): string;
12export declare function getSchemaRefs(this: Ajv, schema: AnySchema): LocalRefs;