import type * as OpenFin from '../../OpenFin'; import { Base } from '../base'; /** * @PORTED * WriteRequestType interface * @typedef { object } WriteRequestType * @property { string } data Data to be written * @property { string } [type] Clipboard Type */ /** * The Clipboard API allows reading and writing to the clipboard in multiple formats. * @namespace */ export default class Clipboard extends Base { /** * Writes data into the clipboard as plain text * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typeof * @return {Promise.} * @tutorial Clipboard.writeText */ writeText(writeObj: OpenFin.WriteRequestType): Promise; /** * Read the content of the clipboard as plain text * @param { string } type Clipboard Type * @return {Promise.} * @tutorial Clipboard.readText */ readText(type?: string): Promise; /** * Writes data into the clipboard as Html * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typedef * @return {Promise.} * @tutorial Clipboard.writeHtml */ writeHtml(writeObj: OpenFin.WriteRequestType): Promise; /** * Read the content of the clipboard as Html * @param { string } type Clipboard Type * @return {Promise.} * @tutorial Clipboard.readHtml */ readHtml(type?: string): Promise; /** * Writes data into the clipboard as Rtf * @param { WriteRequestType } writeObj This object is described in the WriteRequestType typedef * @return {Promise.} * @tutorial Clipboard.writeRtf */ writeRtf(writeObj: OpenFin.WriteRequestType): Promise; /** * Read the content of the clipboard as Rtf * @param { string } type Clipboard Type * @return {Promise.} * @tutorial Clipboard.readRtf */ readRtf(type?: string): Promise; /** * Writes data into the clipboard * @param { WriteAnyRequestType } writeObj This object is described in the WriteAnyRequestType typedef * @return {Promise.} * @tutorial Clipboard.write */ write(writeObj: OpenFin.WriteAnyRequestType): Promise; /** * Reads available formats for the clipboard type * @param { string } type Clipboard Type * @return {Promise.Array.} * @tutorial Clipboard.getAvailableFormats */ getAvailableFormats(type?: string): Promise>; }