UNPKG

matterbridge-roborock-vacuum-plugin

Version:
14 lines 762 B
/** Maps rr_* firmware tokens to English display names. */ export declare const RR_ROOM_TYPE_TOKENS: Record<string, string>; /** * Normalizes a B01 protobuf roomName to a human-readable display label. * * Rules (in order): * 1. Empty / whitespace → use roomTypeId lookup (if known and not rr_other) → `Room ${roomId}` default. * 2. Known rr_* token (excl. rr_other) → English label. * 3. rr_other → `Room ${roomId}` (or "Room" if roomId unavailable). * 4. /^room(\d{1,2})$/i pattern → `Room${N}` (e.g. room5 → Room5). * 5. All other values → pass through unchanged. */ export declare function normalizeB01RoomName(roomName: string | undefined, roomTypeId?: number, roomId?: number): string; //# sourceMappingURL=roomNameNormalizer.d.ts.map