type CallAcceptedMessageWithPayload = { type: 'CALL_ACCEPTED'; payload: { signalData: string; }; }; type DeviceDetailsMessageWithPayload = { type: 'DEVICE_DETAILS'; payload: { socketID: string; deviceType: string; os: string; browser: string; deviceScreenWidth: number; deviceScreenHeight: number; }; }; type GetAppThemeMessageWithPayload = { type: 'GET_APP_THEME'; payload: Record; }; type GetAppLanguageMessageWithPayload = { type: 'GET_APP_LANGUAGE'; payload: Record; }; type ProcessedMessage = | CallAcceptedMessageWithPayload | DeviceDetailsMessageWithPayload | GetAppThemeMessageWithPayload | GetAppLanguageMessageWithPayload;