1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-18 09:35:20 +02:00
joplin/packages/app-cli/tests/support/plugins/dialog/api/JoplinClipboard.d.ts

30 lines
1.1 KiB
TypeScript
Raw Normal View History

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-11-17 18:38:07 +02:00
/** <span class="platform-desktop">desktop</span> */
2021-08-10 12:34:49 +02:00
readHtml(): Promise<string>;
2024-11-17 18:38:07 +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-11-17 18:38:07 +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-11-17 18:38:07 +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[]>;
}