-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.d.ts
More file actions
14 lines (13 loc) · 739 Bytes
/
index.d.ts
File metadata and controls
14 lines (13 loc) · 739 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export interface UseDeskConfig {
companyID: string, url: string, urlToSendFile: string, port: string, api_token: string, email: string, phone: string, name: string, nameChat: string, signature: string, channelId: string;
}
declare module 'react-native-usedesk' {
export class UseDesk {
public static initChat(config: UseDeskConfig);
public static sendFile(message: string, fileName: string, fileType: string, base64: string);
public static sendFileAndroid(uri: string, fileType: string, name: string);
public static sendMessage(message: string);
public static addEventListener(event: string, listener: (data: any) => void);
public static removeEventListener(event: string);
}
}