-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
38 lines (38 loc) · 1.33 KB
/
index.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
32
33
34
35
36
37
38
export const console: any;
export function oco2Object(oco: any): {};
export function oco2Vars(oco: any, prefix?: string): string;
/**
* Read source data from an array of paths and return a Reader instance.
* @param {string[]} pathArray An Array of paths to load.
* @return {Reader} The Reader instance.
*/
export function paletteReader(pathArray: string[]): Reader;
/**
* Write an Open Color format palette to the destination.
* @param {string} destination The destination path.
* @param {OpenColor} palette The Open Color palette data.
* @return {Promise} A promise that resoves when file is saved.
*/
export function paletteWriter(destination: string, palette: any): Promise<any>;
declare class Reader {
constructor(source_: any);
sourcePath: any;
tree: any;
pick(key_: any): any;
/**
* Transform the internal color palette to a range of additional formats.
* @private
* @param {string[]} formats - An array of color formats to add to the palette.
* @return {Reader} The Reader instance.
*/
private transform;
/**
* Load palette data from an array of paths.
* @private
* @param {string[]} pathArray The array of paths to load.
* @return {Promise} A Promise that resolves with this instance when loaded.
*/
private load;
render(path: any): any;
}
export {};