UNPKG

communication-react-19

Version:

React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)

41 lines 2.6 kB
import { CallWithChatAdapter } from './CallWithChatAdapter'; import { ChatAdapter, ChatAdapterState } from '../../ChatComposite'; import { ResourceDetails } from '../../ChatComposite'; import { MessageOptions } from "../../../../../acs-ui-common/src"; import { ErrorBarStrings } from "../../../../../react-components/src"; import { UploadChatImageResult } from "../../../../../acs-ui-common/src"; /** * Facade around the CallWithChatAdapter to satisfy the chat adapter interface. * * @private */ export declare class CallWithChatBackedChatAdapter implements ChatAdapter { private callWithChatAdapter; private eventStore; constructor(callWithChatAdapter: CallWithChatAdapter); fetchInitialData: () => Promise<void>; sendMessageHandler: (this: CallWithChatBackedChatAdapter, content: string, options?: MessageOptions) => Promise<void>; uploadImageHandler: (this: CallWithChatBackedChatAdapter, image: Blob, fileName: string) => Promise<UploadChatImageResult>; deleteImageHandler: (this: CallWithChatBackedChatAdapter, imageId: string) => Promise<void>; sendMessage: (content: string, options?: MessageOptions | undefined) => Promise<void>; uploadImage: (image: Blob, fileName: string) => Promise<UploadChatImageResult>; deleteImage: (imageId: string) => Promise<void>; sendReadReceipt: (chatMessageId: string) => Promise<void>; sendTypingIndicator: () => Promise<void>; removeParticipant: (userId: string) => Promise<void>; loadPreviousChatMessages: (messagesToLoad: number) => Promise<boolean>; dispose: () => void; onStateChange: (handler: (state: ChatAdapterState) => void) => void; offStateChange: (handler: (state: ChatAdapterState) => void) => void; getState: () => ChatAdapterState; on: (event: any, listener: any) => void; off: (event: any, listener: any) => void; updateMessageHandler: (this: CallWithChatBackedChatAdapter, messageId: string, content: string, options?: Record<string, string> | /* @conditional-compile-remove(file-sharing-acs) */ MessageOptions) => Promise<void>; updateMessage: (messageId: string, content: string, options?: Record<string, string> | MessageOptions | undefined) => Promise<void>; deleteMessage: (messageId: string) => Promise<void>; clearErrors: (errorTypes: (keyof ErrorBarStrings)[]) => void; setTopic: (topicName: string) => Promise<void>; downloadResourceToCache(resourceDetails: ResourceDetails): Promise<void>; removeResourceFromCache(resourceDetails: ResourceDetails): void; } //# sourceMappingURL=CallWithChatBackedChatAdapter.d.ts.map