mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-27 10:32:58 +02:00
30 lines
1.1 KiB
TypeScript
30 lines
1.1 KiB
TypeScript
export default class JoplinClipboard {
|
|
private electronClipboard_;
|
|
private electronNativeImage_;
|
|
constructor(electronClipboard: any, electronNativeImage: any);
|
|
readText(): Promise<string>;
|
|
writeText(text: string): Promise<void>;
|
|
/** <span class="platform-desktop">desktop</span> */
|
|
readHtml(): Promise<string>;
|
|
/** <span class="platform-desktop">desktop</span> */
|
|
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.
|
|
*
|
|
* <span class="platform-desktop">desktop</span>
|
|
*/
|
|
readImage(): Promise<string>;
|
|
/**
|
|
* Takes an image in [data URL](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs) format.
|
|
*
|
|
* <span class="platform-desktop">desktop</span>
|
|
*/
|
|
writeImage(dataUrl: string): Promise<void>;
|
|
/**
|
|
* Returns the list available formats (mime types).
|
|
*
|
|
* For example [ 'text/plain', 'text/html' ]
|
|
*/
|
|
availableFormats(): Promise<string[]>;
|
|
}
|