communication-react-19
Version:
React library for building modern communication user experiences utilizing Azure Communication Services (React 19 compatible fork)
39 lines • 2.08 kB
TypeScript
import { AttachmentMetadataInProgress } from "../../../../../acs-ui-common/src";
import { AttachmentUpload } from '../file-sharing/AttachmentUpload';
import { ChatAdapter } from '../adapter/ChatAdapter';
import { Dispatch } from 'react';
import { ImageActions } from './ImageUploadReducer';
import { ChatCompositeStrings } from '../Strings';
/**
* @private
*/
export declare const getInlineImageData: (image: string) => Promise<Blob | undefined>;
/**
* @internal
*/
export declare const getEditBoxMessagesInlineImages: (editBoxInlineImageUploads: Record<string, AttachmentUpload[]> | undefined) => Record<string, AttachmentMetadataInProgress[]> | undefined;
/**
* @internal
*/
export declare const getSendBoxInlineImages: (sendBoxInlineImageUploads: Record<string, AttachmentUpload[]> | undefined) => AttachmentMetadataInProgress[] | undefined;
/**
* @internal
*/
export declare const onInsertInlineImageForEditBox: (imageAttributes: Record<string, string>, fileName: string, messageId: string, adapter: ChatAdapter, handleEditBoxInlineImageUploadAction: Dispatch<ImageActions>, chatCompositeStrings: ChatCompositeStrings) => Promise<void>;
/**
* @internal
*/
export declare const onInsertInlineImageForSendBox: (imageAttributes: Record<string, string>, fileName: string, adapter: ChatAdapter, handleSendBoxInlineImageUploadAction: Dispatch<ImageActions>, chatCompositeStrings: ChatCompositeStrings) => Promise<void>;
/**
* @internal
*/
export declare const cancelInlineImageUpload: (imageAttributes: Record<string, string>, imageUploads: Record<string, AttachmentUpload[]> | undefined, messageId: string, inlineImageUploadActionHandler: Dispatch<ImageActions>, adapter: ChatAdapter) => void;
/**
* @internal
*/
export declare const updateContentStringWithUploadedInlineImages: (content: string, imageUploads: Record<string, AttachmentUpload[]> | undefined, messageId?: string) => string;
/**
* @internal
*/
export declare const getImageFileNameFromAttributes: (imageAttributes: Record<string, string>) => string;
//# sourceMappingURL=ImageUploadUtils.d.ts.map