/** * Shared parsing for local `$ref` URI fragments (RFC 6901 JSON Pointers). * omptype's JSON Schema importer and pi-ai's schema resolvers decode refs * through these helpers so percent-encoded, pointer-escaped, and empty tokens * resolve identically everywhere. */ /** * Parse a local `$ref` URI fragment into decoded JSON Pointer tokens: * percent-decode the fragment, split on `/`, then unescape `~1`/`~0` per * token. Returns `[]` for the root ref `#`, and `undefined` for non-local * refs or fragments that do not percent-decode. */ export declare function parseLocalRefPointer(ref: string): string[] | undefined; /** * Encode JSON Pointer tokens back into a local `$ref` URI fragment — the * inverse of {@link parseLocalRefPointer}. */ export declare function formatLocalRefPointer(tokens: readonly string[]): string;