-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.d.ts
31 lines (18 loc) · 1.09 KB
/
main.d.ts
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
// sync function
export function getXattrSync(path: string, name: string): Buffer;
export function getXattrSync(path: string, name: string, encoding: string): string;
export function setXattrSync(path: string, name: string, value: string | Buffer): void;
export function listXattrSync(path: string): string[];
export function removeXattrSync(path: string, name: string): void;
// promise function
export function getXattr(path: string, name: string): Promise<Buffer>;
export function getXattr(path: string, name: string, encoding: string): Promise<string>;
export function setXattr(path: string, name: string, value: string | Buffer): Promise<void>;
export function listXattr(path: string): Promise<string[]>;
export function removeXattr(path: string, name: string): Promise<void>;
namespace macUtils {
export function setCustomIcon(filePath: string, iconPath: string): Promise<void>;
export function setCustomIconSync(filePath: string, iconPath: string): void;
export function serializeArrayOfString(content: string[]): Buffer;
export function deserializeArrayOfString(buffer: Buffer): string[];
}