import React from 'react'; import Channel, { ChannelResponseContext } from '../channels/Channel'; export declare enum NodeTypes { TEXT = "text", BOLD = "b", ITALIC = "i", STRIKETHROUGH = "s", CODE = "code", BREAK_LINE = "br", MESSAGE = "message", CONVERSATION = "conversation", BUTTON = "button" } export interface RendererNode { children: RendererNode[]; type?: NodeTypes; text?: string; props?: NativeElementProps; } export declare type NativeElementProps = Record; export interface MessageNativeElementProps extends NativeElementProps { channel: Channel; children: React.ReactNode; responseContext: ChannelResponseContext; extraData?: Record; } export interface ButtonNativeElementProps extends NativeElementProps { children: string; data?: Record; } export interface MessageRendererNode extends RendererNode { type: NodeTypes.MESSAGE; props: MessageNativeElementProps; }