forked from microsoft/BotFramework-WebChat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbotchat.d.ts
40 lines (32 loc) · 897 Bytes
/
botchat.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import * as React from 'react';
export interface DirectLineOptions {
secret?: string,
token?: string
domain?: string,
webSocket?: boolean
}
export declare class DirectLine {
constructor(options: DirectLineOptions);
activity$: any; // Observable<Activity>
connectionStatus$: any; // BehaviorSubject<ConnectionStatus>
reconnect(conversation: any);
end();
}
export interface FormatOptions {
showHeader?: boolean
}
export interface User {
id: string,
name?: string
}
export interface ChatProps {
user: User,
botConnection?: any,
directLine?: DirectLineOptions,
locale?: string,
selectedActivity?: any,
formatOptions?: FormatOptions
}
export type AppProps = ChatProps;
export declare const App: (props: AppProps, container: HTMLElement) => void;
export declare class Chat extends React.Component<ChatProps, {}> {}