This repository has been archived by the owner on Oct 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
96 lines (76 loc) · 2.12 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// Type definitions for [~Little Espresso~] [~1.0.4~]
// Project: [~Little Espresso~]
// Definitions by: [~Marcus Cemes~] <[~https://mastermovies.co.uk]>
export = littleEspresso;
/**
* Starts the process of searching
* for files, and guiding the user through the experience.
* The program may be configured to require no standard input whatsoever through
* the user of the ProgramParameters.
*
* @param {ProgramParameters} programParameters The global program parameters.
* Similar to arguments on a command line
*
* @returns {littleEspresso.SpiltEspresso | true} An object with the error message, or true
*/
declare function littleEspresso(programParameters: littleEspresso.ProgramParameters): littleEspresso.SpiltEspresso | true;
declare namespace littleEspresso {
export interface ProgramParameters {
/**
* An array of paths that will be searched for video files.
* May be video files directly or folders to scan.
* If none are provided, the CWD is used.
*/
files?: string[];
/**
* Force TrueColour output
*/
colour?: boolean;
/**
* Overwrite files without warning
*/
force?: boolean;
/**
* Toggle the bell sound at the end of of execution
*/
quiet?: boolean;
/**
* The h264 encoding preset to use
*/
preset?: string;
/**
* The target export size in bytes
*/
target?: number;
/**
* The export resolution for all files (without upscaling)
*/
resolution?: number | boolean;
/**
* THe export framerate for all files (without oversampling)
*/
framerate?: number | boolean;
/**
* The start time for video trimming, for all files
*/
start?: number | boolean;
/**
* The end time for video trimming, for all files
*/
end?: number | boolean;
/**
* The path to the FFmpeg binary, including the filename
*/
ffmpeg?: string;
/**
* The path to the FFprobe binary, including the filename
*/
ffprobe?: string;
}
/**
* A standard Little Espresso error
*/
export interface SpiltEspresso {
message: string;
}
}