import type { ColdCode } from "../core/types.js"; import { Matter, type MatterInit } from "./matter.js"; /** * Build a Pather from semantic route/path text. * * This mirrors the KERIpy `Pather(path=..., relative=..., pathive=...)` * constructor path: * - "pathive" base64-safe segments use compact StrB64 encoding with `-` * separators * - non-pathive routes fall back to byte/text encoding when they contain * characters like `/` * - relative routes keep the first segment as-is, while absolute paths are * forced to start with an empty root segment * * Examples: * - `makePather("ksn", { relative: true, pathive: false }).qb64 === "4AABAksn"` * - `makePather("reply", { relative: true, pathive: false }).qb64 === "6AACAAAreply"` * - `makePather("credential/issue", { relative: true, pathive: false }).qb64 === "4AAEcredential-issue"` */ export declare function makePather(path: string | readonly string[], opts?: { relative?: boolean; pathive?: boolean; }): Pather; /** * CESR path primitive for SAD traversal routes. * * KERIpy semantics: path strings may be compactly encoded via StrB64 family * (`-` separators, optional `--` escape prefix) or carried as raw bytes. */ export declare class Pather extends Matter { constructor(init: Matter | MatterInit); /** Decoded `/`-separated path form regardless of underlying CESR code family. */ get path(): string; } /** Parse and hydrate a `Pather` from txt/qb2 bytes. */ export declare function parsePather(input: Uint8Array, cold: Extract): Pather; //# sourceMappingURL=pather.d.ts.map