2021-08-10 12:34:49 +02:00
|
|
|
export default class JoplinClipboard {
|
|
|
|
private electronClipboard_;
|
|
|
|
private electronNativeImage_;
|
|
|
|
constructor(electronClipboard: any, electronNativeImage: any);
|
|
|
|
readText(): Promise<string>;
|
|
|
|
writeText(text: string): Promise<void>;
|
2024-08-08 21:02:53 +02:00
|
|
|
/** <span class="platform-desktop">desktop</span> */
|
2021-08-10 12:34:49 +02:00
|
|
|
readHtml(): Promise<string>;
|
2024-08-08 21:02:53 +02:00
|
|
|
/** <span class="platform-desktop">desktop</span> */
|
2021-08-10 12:34:49 +02:00
|
|
|
writeHtml(html: string): Promise<void>;
|
|
|
|
/**
|
|
|
|
* Returns the image in [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format.
|
2024-08-08 21:02:53 +02:00
|
|
|
*
|
|
|
|
* <span class="platform-desktop">desktop</span>
|
2021-08-10 12:34:49 +02:00
|
|
|
*/
|
|
|
|
readImage(): Promise<string>;
|
|
|
|
/**
|
|
|
|
* Takes an image in [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format.
|
2024-08-08 21:02:53 +02:00
|
|
|
*
|
|
|
|
* <span class="platform-desktop">desktop</span>
|
2021-08-10 12:34:49 +02:00
|
|
|
*/
|
|
|
|
writeImage(dataUrl: string): Promise<void>;
|
|
|
|
/**
|
|
|
|
* Returns the list available formats (mime types).
|
|
|
|
*
|
|
|
|
* For example [ 'text/plain', 'text/html' ]
|
|
|
|
*/
|
|
|
|
availableFormats(): Promise<string[]>;
|
|
|
|
}
|