/// import * as React from 'react'; import { BehaviorSubject } from 'rxjs/BehaviorSubject'; import { CardActionTypes, DirectLineOptions, IBotConnection, User } from 'botframework-directlinejs'; import { SpeechOptions } from './SpeechOptions'; import { ActivityOrID, FormatOptions } from './Types'; export interface ChatProps { adaptiveCardsHostConfig: any; chatTitle?: boolean | string; user: User; bot: User; botConnection?: IBotConnection; directLine?: DirectLineOptions; speechOptions?: SpeechOptions; locale?: string; selectedActivity?: BehaviorSubject; sendTyping?: boolean; showUploadButton?: boolean; formatOptions?: FormatOptions; resize?: 'none' | 'window' | 'detect'; } export declare class Chat extends React.Component { private store; private botConnection; private activitySubscription; private connectionStatusSubscription; private selectedActivitySubscription; private shellRef; private historyRef; private chatviewPanelRef; private resizeListener; private _handleCardAction; private _handleKeyDownCapture; private _saveChatviewPanelRef; private _saveHistoryRef; private _saveShellRef; constructor(props: ChatProps); private handleIncomingActivity(activity); private setSize(); private handleCardAction(); private handleKeyDownCapture(evt); private saveChatviewPanelRef(chatviewPanelRef); private saveHistoryRef(historyWrapper); private saveShellRef(shellWrapper); componentDidMount(): void; componentWillUnmount(): void; componentWillReceiveProps(nextProps: ChatProps): void; render(): JSX.Element; } export declare type IDoCardAction = (type: CardActionTypes, value: string | object) => void; export declare const doCardAction: (botConnection: IBotConnection, from: User, locale: string, sendMessage: (value: string, user: User, locale: string) => void) => IDoCardAction; export declare const sendPostBack: (botConnection: IBotConnection, text: string, value: object, from: User, locale: string) => void; export declare const renderIfNonempty: (value: any, renderer: (value: any) => JSX.Element) => JSX.Element; export declare const classList: (...args: (string | boolean)[]) => string;