/** * Client-side encoding for the opaque {@link Frontier} string. * * A byte-for-byte mirror of `src/server/frontier.ts`. The two cannot be one * module because they differ in a single import — `loro.client.js` versus * `loro.server.js` — and that import is the whole point of the split: a shared * helper would drag a wasm build into whichever environment it was not meant * for. Twenty duplicated lines is the cheaper mistake. */ import { type Frontiers } from '../loro.client.js'; import type { Frontier } from '../types.js'; /** Bytes → base64. */ 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. */ export declare const EMPTY_FRONTIER: Frontier; //# sourceMappingURL=frontier.d.ts.map