import { PreviewMessageParams } from '../bubble/types' export type CommandData = { isFromBot: boolean } & ( | { command: 'open' | 'toggle' | 'close' | 'hidePreviewMessage' | 'unmount' } | ShowMessageCommandData | SetPrefilledVariablesCommandData | SetInputValueCommandData ) export type ShowMessageCommandData = { command: 'showPreviewMessage' message?: Pick } export type SetPrefilledVariablesCommandData = { command: 'setPrefilledVariables' variables: Record } export type SetInputValueCommandData = { command: 'setInputValue' value: string }