matrix-react-sdk
Version:
SDK for matrix.org using React
11 lines (10 loc) • 513 B
TypeScript
import { EncryptedFile, RoomMessageEventContent } from "matrix-js-sdk/src/types";
/**
* @param {string} mxc MXC URL of the file
* @param {string} mimetype
* @param {number} duration Duration in milliseconds
* @param {number} size
* @param {number[]} [waveform]
* @param {EncryptedFile} [file] Encrypted file
*/
export declare const createVoiceMessageContent: (mxc: string | undefined, mimetype: string, duration: number, size: number, file?: EncryptedFile, waveform?: number[]) => RoomMessageEventContent;