import { EventEmitter } from '../../stencil-public-runtime'; import { IconPack } from '../../exports'; import { Message } from '@cloudflare/realtimekit'; export interface MessageAction { id: string; label: string; icon?: string; } export declare class RtkMessageView { /** List of actions to show in menu */ actions: MessageAction[]; /** Type of message */ messageType: Message['type']; /** Has the message been edited */ isEdited: boolean; /** Appearance */ variant: 'plain' | 'bubble'; /** Is message pinned */ pinned: boolean; /** Render */ viewType: 'incoming' | 'outgoing'; /** Avatar image url */ avatarUrl: string; /** Hides avatar */ hideAvatar: boolean; /** Author display label */ authorName: string; /** Is the message sent by the current user */ isSelf: boolean; /** Hides author display label */ hideAuthorName: boolean; /** Hides metadata (time) */ hideMetadata: boolean; /** Time when message was sent */ time: Date; /** Icon pack */ iconPack: IconPack; /** action event */ onAction: EventEmitter; private renderActions; render(): any; }