import { JsonSchema } from '..'; /** * Map for storing refs and the respective schemas they are pointing to. */ export interface ReferenceSchemaMap { [ref: string]: JsonSchema; } export declare const resolveData: (instance: any, dataPath: string) => any; /** * Finds all references inside the given schema. * * @param schema The {@link JsonSchema} to find the references in * @param result The initial result map, default: empty map (this parameter is used for recursion * inside the function) * @param resolveTuples Whether arrays of tuples should be considered; default: false */ export declare const findAllRefs: (schema: JsonSchema, result?: ReferenceSchemaMap, resolveTuples?: boolean) => ReferenceSchemaMap; /** * Resolve the given schema path in order to obtain a subschema. * @param {JsonSchema} schema the root schema from which to start * @param {string} schemaPath the schema path to be resolved * @param {JsonSchema} rootSchema the actual root schema * @returns {JsonSchema} the resolved sub-schema */ export declare const resolveSchema: (schema: JsonSchema, schemaPath: string, rootSchema?: JsonSchema) => JsonSchema; /** * Interface for describing result of an extracted schema ref */ export interface SchemaRef { uri: string; } /** * Interface wraps SchemaRef */ export interface SchemaRefs { [id: string]: SchemaRef; } export declare const findRefs: (obj: JsonSchema) => SchemaRefs;