-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.d.ts
32 lines (28 loc) · 1.14 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
export = Kactus
declare namespace Kactus {
export interface IKactusConfig {
readonly shareTextStyles?: boolean
readonly shareLayerStyles?: boolean
readonly sharedPages?: Array<string>
readonly ignore?: Array<string>
readonly root?: string
readonly limitToTopLevelLayers?: boolean
}
export interface IKactusFile {
readonly path: string
readonly id: string
readonly parsed: boolean
readonly imported: boolean
readonly lastModified?: number
}
export interface IKactusStatusResult {
readonly config: IKactusConfig
readonly files: Array<IKactusFile>
}
export function parseFile(path: string, config?: IKactusConfig & {sketchVersion?: string}): Promise<string>
export function importFolder(path: string, config?: IKactusConfig & {sketchPath?: string}): Promise<string>
export function parseAll(path: string): Promise<Array<string>>
export function importAll(path: string): Promise<Array<string>>
export function find(path: string): Promise<IKactusStatusResult>
export function createNewFile(path: string, config?: IKactusConfig): Promise<string>
}