UNPKG

maests

Version:

An executable compiler for creating Maestro's yaml-flows with typescript.

19 lines (18 loc) 931 B
declare const allowedMimeTypes: readonly ["image/png", "image/jpeg", "image/jpg", "image/gif", "video/mp4"]; type AllowedMimeTypes = (typeof allowedMimeTypes)[number]; /** * Adds a media file to the device's gallery, making it accessible for use in application flows. * Supports both Android and iOS platforms. * * @param {string} mimeType - The MIME type of the media file to add. * Must be one of the following supported types: * "image/png", "image/jpeg", "image/jpg", "image/gif", "video/mp4". * @param {string} filePath - The relative path to the media file. * * @throws {Error} Throws an error if the provided MIME type is not in the allowed list. * * @example * addMedia("image/png", "../assets/test.png"); // Adds a PNG file located at the specified path */ export declare const addMedia: (mimeType: AllowedMimeTypes, filePath: string) => void; export {};