/** * @license * Copyright 2026 Qwen Team * SPDX-License-Identifier: Apache-2.0 */ /** Longest flattened label kept anywhere a sender names itself. */ export declare const MAX_LABEL_CHARS = 200; /** Longest name a record keeps: it is printed in a fixed-width column. */ export declare const MAX_SESSION_NAME_CHARS = 40; /** * One line of printable text, at most {@link MAX_LABEL_CHARS} code points. * Counted in code points so the cut never leaves half of an astral * character behind. */ export declare function flattenPeerLabel(value: string): string; /** * The name a record stores: flattened, then cut to * {@link MAX_SESSION_NAME_CHARS} code points. Counted in code points so an * astral character at the boundary is never split into a lone surrogate. */ export declare function boundSessionName(name: string): string; /** * Six hex characters of `sha256(sessionId)`: the handle that tells two * sessions of the same name apart. Derived rather than random, so a session * prints the same one every time it is listed. */ export declare function peerRef(sessionId: string): string; /** * A readable default name: the directory's basename plus two hex characters * of the session id, since two sessions in one directory is the common case. */ export declare function deriveSessionName(cwd: string, sessionId: string): string;