import type { Schema } from './types.js'; /** * Decode a single JSON Pointer reference token (RFC 6901): `~1` -> `/`, `~0` -> `~`. * `~1` must be replaced before `~0`. */ export declare function unescapePointer(segment: string): string; export declare function resolveReference(root: Schema, ref: string): Schema; export declare function resolveSchema(root: Schema, schema: Schema): Schema; /** * Rebase root-local `#/definitions/...` and `#/$defs/...` references against their nearest * definition scope, so a schema's references keep resolving once it is embedded in another schema. * Call it on the composed schema: references are rewritten as pointers from its root. * Only schema locations are traversed, and subschemas declaring an `$id` are left unchanged. * Other root references such as `#` or `#/properties/...` are not rebased. * The source schema is not mutated. */ export declare function rebaseDefinitionReferences(schema: Schema): Schema;