import {IpcRegistryDescription} from "tc-shared/events"; import {ChannelConversationUiEvents} from "tc-shared/ui/frames/side/ChannelConversationDefinitions"; import {ChannelDescriptionUiEvents} from "tc-shared/ui/frames/side/ChannelDescriptionDefinitions"; import {ChannelFileBrowserUiEvents} from "tc-shared/ui/frames/side/ChannelFileBrowserDefinitions"; export type ChannelBarMode = "conversation" | "description" | "file-transfer" | "none"; export interface ChannelBarModeData { "conversation": { events: IpcRegistryDescription, }, "description": { events: IpcRegistryDescription }, "file-transfer": { events: IpcRegistryDescription }, "none": {} } export type ChannelBarNotifyModeData = { content: T, data: ChannelBarModeData[T] } export interface ChannelBarUiEvents { query_mode: {}, query_channel_id: {}, query_data: { mode: ChannelBarMode }, notify_mode: { mode: ChannelBarMode }, notify_channel_id: { channelId: number, handlerId: string }, notify_data: ChannelBarNotifyModeData }