declare namespace Chat { type Message = { type: string; sub_type?: string; text: string; user_id?: string; source_url?: string; file_id?: string; }; type ChannelType = { action: string; room_id: string; data: any; }; type RoomRecord = { created_at: string; from_user_avatar: string; from_user_id: string; from_user_name: string; id: string; message: Message[]; room_id: string; to_user_ids: string[]; }; type RoomInfo = { allow_user_ids: string[]; creator: string; creator_id: string; id: string; name: string; org_id: string; created_at: string; record: RoomRecord[]; updated_at: string; updated_by: string; last_record: | { id: string; room_id: string; created_at: string; from_user_id: string; message: Message[]; room_id: string; to_user_id: string; } | undefined; }; type RoomChannelInfo = { id: string; op: string; room: RoomInfo; }; type Room = { onlineUserIDs: string[]; records: RoomRecord[]; room: RoomInfo | undefined; }; }