/** Maximum length of a group name in UTF-8 bytes (operational-safety ceiling). */ export declare const MAX_GROUP_NAME_BYTES = 256; /** Per-environment lane suffixes — the complete lane catalogue for env lanes. */ export type EnvLane = "root" | "events" | "lifecycle" | "control" | "ingest-ack" | "clients"; /** Per-client lane discriminator. */ export type ClientLaneKind = "broadcast" | "to-host" | "to-client"; /** Structured result of {@link parseGroupName} for a per-client lane. */ export type ParsedClientLane = { readonly scope: "client"; readonly lane: ClientLaneKind; readonly cid: string; }; /** Structured result of {@link parseGroupName} for a per-environment lane. */ export type ParsedEnvLane = { readonly scope: "env"; readonly lane: EnvLane; }; /** Parsed group name. Always carries `uid` and `eid`; `lane` discriminates scope. */ export type ParsedGroup = (ParsedClientLane | ParsedEnvLane) & { readonly uid: string; readonly eid: string; }; /** * Error thrown by {@link parseGroupName} when a name violates the grammar's * validation rules or the {@link MAX_GROUP_NAME_BYTES} ceiling. */ export declare class GroupNameError extends Error { constructor(message: string); } /** Options accepted by {@link parseGroupName}. */ export interface ParseGroupNameOptions { /** * If set, the parser rejects any group name whose ``, ``, or * per-client `` segment does not match. Omit a field to skip that check. */ readonly expected?: { readonly uid?: string; readonly eid?: string; readonly cid?: string; }; } /** * Parse a group name into its structured components, throwing a * {@link GroupNameError} on any rule violation. */ export declare function parseGroupName(name: string, options?: ParseGroupNameOptions): ParsedGroup;