/** * Encoding for the opaque {@link Frontier} string. * * A Loro `Frontiers` is an array of `{ peer, counter }` pairs. Consumers store * one in a text column, put it in a JSON body and compare two for equality, so * the package hands out a *string* and never a structure — that way there is * one canonical form and no chance of two encodings of the same point failing * an `===`. Loro's own `encodeFrontiers` produces the canonical byte form * (sorted, deduplicated), and base64 makes it column- and JSON-safe. */ import { type Frontiers } from '../loro.server.js'; import type { Frontier } from '../types.js'; /** Bytes → base64. Present in workerd and in Node ≥16; no dependency needed. */ export declare function toBase64(bytes: Uint8Array): string; /** base64 → bytes. */ export declare function fromBase64(text: string): Uint8Array; /** Canonical string form of a Loro frontier. */ export declare function encodeFrontier(frontiers: Frontiers): Frontier; /** Inverse of {@link encodeFrontier}. */ export declare function decodeFrontier(frontier: Frontier): Frontiers; /** The frontier of an empty document — the one value that is not from a doc. */ export declare const EMPTY_FRONTIER: Frontier; //# sourceMappingURL=frontier.d.ts.map