import type { Json } from "./protocol.js";
/**
 * Bytes of rows one transcript page carries (an opening backlog, a reconnect,
 * a live append, an older page), so its frame stays under 256 KB. A phone
 * reaches the Hook through Tailscale, often over a relay, and megabyte frames
 * knocked its tunnel out.
 */
export declare const PAGE_BYTES = 196608;
/**
 * A reconnect or live delta up to this size is sent whole and in order, one
 * page per read. A larger one is replaced by its newest page.
 */
export declare const DELTA_BYTES: number;
/**
 * One transcript line's rows, with their long strings shortened until the
 * line fits a page: a tool output or a written file of several megabytes
 * shows its start and end rather than filling a frame or being left out.
 * The caller leaves out a line whose `size` is still over `limit`.
 */
export declare function clampRows(rows: Json[], limit?: number): {
    rows: Json[];
    size: number;
};
