-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathindex.d.ts
More file actions
55 lines (33 loc) · 1.61 KB
/
Copy pathindex.d.ts
File metadata and controls
55 lines (33 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* auto-generated by NAPI-RS */
/* eslint-disable */
export declare class ClipboardWatcherJs {
stop(): void
get isRunning(): boolean
}
export declare function availableFormats(): Array<string>
export declare function clear(): Promise<void>
export declare function getBuffer(format: string): Promise<Array<number>>
export declare function getFiles(): Promise<Array<string>>
export declare function getHtml(): Promise<string>
export declare function getImageBase64(): Promise<string>
export declare function getImageBinary(): Promise<Array<number>>
export declare function getRtf(): Promise<string>
export declare function getText(): Promise<string>
export declare function hasFiles(): boolean
export declare function hasHtml(): boolean
export declare function hasImage(): boolean
export declare function hasRtf(): boolean
export declare function hasText(): boolean
export declare function setBuffer(format: string, buffer: Array<number>): Promise<void>
export declare function setFiles(files: Array<string>): Promise<void>
export declare function setHtml(html: string): Promise<void>
export declare function setImageBase64(base64Str: string): Promise<void>
export declare function setImageBinary(imageBytes: Array<number>): Promise<void>
export declare function setRtf(rtf: string): Promise<void>
export declare function setText(text: string): Promise<void>
/**
* Start watching the clipboard for changes.
* The callback is invoked whenever the clipboard content changes.
* Returns a `ClipboardWatcherJs` handle that can stop the watcher.
*/
export declare function startWatch(callback: () => void): ClipboardWatcherJs