import IChatConfig from "./core/IChatConfig"; import IChatSDKConfig from "./core/IChatSDKConfig"; import IChatSDKMessage from "./core/IChatSDKMessage"; import IChatToken from "./external/IC3Adapter/IChatToken"; import IChatTranscriptBody from "./core/IChatTranscriptBody"; import IFileInfo from "@microsoft/omnichannel-ic3core/lib/interfaces/IFileInfo"; import IFileMetadata from "@microsoft/omnichannel-ic3core/lib/model/IFileMetadata"; import ILiveChatContext from "./core/ILiveChatContext"; import IMessage from "@microsoft/omnichannel-ic3core/lib/model/IMessage"; import IOmnichannelConfig from "./core/IOmnichannelConfig"; import IRawMessage from "@microsoft/omnichannel-ic3core/lib/model/IRawMessage"; import IRawThread from "@microsoft/omnichannel-ic3core/lib/interfaces/IRawThread"; import IStartChatOptionalParams from "./core/IStartChatOptionalParams"; declare class OmnichannelChatSDK { private debug; OCSDKProvider: unknown; IC3SDKProvider: unknown; OCClient: any; IC3Client: any; omnichannelConfig: IOmnichannelConfig; chatSDKConfig: IChatSDKConfig; requestId: string; private chatToken; private liveChatConfig; private dataMaskingRules; private authSettings; private authenticatedUserToken; private preChatSurvey; private conversation; private callingOption; constructor(omnichannelConfig: IOmnichannelConfig, chatSDKConfig?: IChatSDKConfig); setDebug(flag: boolean): void; initialize(): Promise; startChat(optionalParams?: IStartChatOptionalParams): Promise; endChat(): Promise; getCurrentLiveChatContext(): Promise; /** * Gets PreChat Survey. * @param parse Whether to parse PreChatSurvey to JSON or not. */ getPreChatSurvey(parse?: boolean): Promise; getLiveChatConfig(cached?: boolean): Promise; getChatToken(cached?: boolean): Promise; getMessages(): Promise; getDataMaskingRules(): Promise; sendMessage(message: IChatSDKMessage): Promise; onNewMessage(onNewMessageCallback: CallableFunction): void; sendTypingEvent(): Promise; onTypingEvent(onTypingEventCallback: CallableFunction): Promise; onAgentEndSession(onAgentEndSessionCallback: (message: IRawThread) => void): Promise; uploadFileAttachment(fileInfo: IFileInfo): Promise; downloadFileAttachment(fileMetadata: IFileMetadata): Promise; emailLiveChatTranscript(body: IChatTranscriptBody): Promise; getLiveChatTranscript(): Promise; createChatAdapter(protocol?: string): Promise; getVoiceVideoCalling(params?: any): Promise; private getIC3Client; private getChatConfig; private resolveIC3ClientUrl; private resolveChatAdapterUrl; } export default OmnichannelChatSDK;