/// import type { UnitSegment } from '@machinat/core/renderer'; import type { MessageValue, MessengerComponent, FileInfo } from '../types'; /** * @category Props */ export declare type MediaProps = { /** * URL of the file to upload. Max file size is 25MB (after encoding). A * Timeout is set to 75 sec for videos and 10 secs for every other file type. */ url: string; /** * Set to true to make the saved asset sendable to other message recipients. * Defaults to false. */ reusable?: boolean; /** * Set to true to make the saved asset sendable to other message recipients. * Defaults to false. */ attachmentId?: string; assetTag?: string; fileData?: string | Buffer | NodeJS.ReadableStream; fileInfo?: FileInfo; }; /** * The log out button triggers the account unlinking flow. * @category Component * @props {@link MediaProps} * @guides Check official send API [doc](https://developers.facebook.com/docs/messenger-platform/send-messages) * and [reference](https://developers.facebook.com/docs/messenger-platform/reference/send-api). */ export declare const Image: MessengerComponent>; /** * The log out button triggers the account unlinking flow. * @category Component * @props {@link MediaProps} * @guides Check official send API [doc](https://developers.facebook.com/docs/messenger-platform/send-messages) * and [reference](https://developers.facebook.com/docs/messenger-platform/reference/send-api). */ export declare const Video: MessengerComponent>; /** * The log out button triggers the account unlinking flow. * @category Component * @props {@link MediaProps} * @guides Check official send API [doc](https://developers.facebook.com/docs/messenger-platform/send-messages) * and [reference](https://developers.facebook.com/docs/messenger-platform/reference/send-api). */ export declare const Audio: MessengerComponent>; /** * The log out button triggers the account unlinking flow. * @category Component * @props {@link MediaProps} * @guides Check official send API [doc](https://developers.facebook.com/docs/messenger-platform/send-messages) * and [reference](https://developers.facebook.com/docs/messenger-platform/reference/send-api). */ export declare const File: MessengerComponent>;