/** * Interact with the system clipboard * * @deprecated * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at * any time without notice: support for this capability in Teams and other host apps may be removed * entirely and independently of a TeamsJS major release, so continued functionality is not * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`). * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully * supported; it depends on native device permission handling that is still being enabled as a * separate effort. * * @beta * @module */ /** * Function to copy data to clipboard. * * @deprecated * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at * any time without notice: support for this capability in Teams and other host apps may be removed * entirely and independently of a TeamsJS major release, so continued functionality is not * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`). * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully * supported; it depends on native device permission handling that is still being enabled as a * separate effort. * * @remarks * Note: clipboard.write only supports Text, HTML, PNG, and JPEG data format. * MIME type for Text -> `text/plain`, HTML -> `text/html`, PNG/JPEG -> `image/(png | jpeg)` * Also, JPEG will be converted to PNG image when copying to clipboard. * * @param blob - A Blob object representing the data to be copied to clipboard. * @returns A string promise which resolves to success message from the clipboard or * rejects with error stating the reason for failure. */ export declare function write(blob: Blob): Promise; /** * Function to read data from clipboard. * * @deprecated * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at * any time without notice: support for this capability in Teams and other host apps may be removed * entirely and independently of a TeamsJS major release, so continued functionality is not * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`). * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully * supported; it depends on native device permission handling that is still being enabled as a * separate effort. * * @returns A promise blob which resolves to the data read from the clipboard or * rejects stating the reason for failure. * Note: Returned blob type will contain one of the MIME type `image/png`, `text/plain` or `text/html`. */ export declare function read(): Promise; /** * Checks if clipboard capability is supported by the host * @returns boolean to represent whether the clipboard capability is supported * * @throws Error if {@linkcode app.initialize} has not successfully completed * * @deprecated * As of TeamsJS v2.54.0, the clipboard capability is deprecated. These APIs may stop working at * any time without notice: support for this capability in Teams and other host apps may be removed * entirely and independently of a TeamsJS major release, so continued functionality is not * guaranteed. The intended long-term replacement is the standardized Clipboard API provided by the * browser ({@link https://developer.mozilla.org/docs/Web/API/Clipboard_API | Clipboard API}, `navigator.clipboard`). * Note that using the browser-native Clipboard API directly within Teams hosts is not yet fully * supported; it depends on native device permission handling that is still being enabled as a * separate effort. * * @beta */ export declare function isSupported(): boolean;