/**
 * How an RPC record reads as one monitor line. A session is named by its label - the task id it was
 * opened for, else its name, else the first 8 characters of its durable id - with its routing id in
 * parentheses the first time it appears in a batch. Status lines carry the transition (the renderer
 * remembers each session's last status, seeded from the subscription snapshot); unknown kinds render as
 * truncated JSON, because the monitor keeps no allowlist of record kinds.
 */
import type { RpcRecord } from "./rpc-monitor-observer.ts";
export declare class RpcMonitorRenderer {
    #private;
    /** Remembers the sessions a subscription answer listed; returns the arm-time RESULT rows. */
    seed(socket: string, snapshot: readonly RpcRecord[]): string[];
    /** Drops every session an endpoint reported; returns how many. */
    forgetSocket(socket: string): number;
    /** Every session this renderer knows, with its last status: what a checkpoint records. */
    statuses(): ReadonlyMap<string, string>;
    label(socket: string, record: RpcRecord): string;
    /** One line for a non-coalesced record, or undefined when it changes nothing worth a line. */
    render(socket: string, record: RpcRecord): string | undefined;
}
export declare function sessionKey(socket: string, record: RpcRecord): string;
/** How a line about a session nobody watched names it: the first 8 characters of its key's session id. */
export declare function detachedLabel(key: string): string;
//# sourceMappingURL=rpc-monitor-render.d.ts.map