/** * Upserts a room into a list by `id`. * Transport-agnostic: any room-like object with a stable `id` is accepted. */ export declare function upsertRoom(rooms: readonly TRoom[], nextRoom: TRoom): TRoom[];