UNPKG

983 BTypeScriptView Raw
1export declare const isWindows: boolean;
2export declare const isOSX: boolean;
3export declare const EOL: string;
4export declare type CMD = [string, string[]];
5export declare function cmd(command: string, ...args: string[]): CMD;
6export declare namespace OS {
7 /**
8 * Enumeration of the supported operating systems.
9 */
10 enum Type {
11 Windows = "Windows",
12 Linux = "Linux",
13 OSX = "OSX"
14 }
15 /**
16 * Returns with the type of the operating system. If it is neither [Windows](isWindows) nor [OS X](isOSX), then
17 * it always return with the `Linux` OS type.
18 */
19 function type(): OS.Type;
20 const backend: {
21 type: typeof type;
22 isWindows: boolean;
23 isOSX: boolean;
24 EOL: string;
25 };
26}
27export declare const OSBackendProviderPath = "/os";
28export declare const OSBackendProvider: unique symbol;
29export interface OSBackendProvider {
30 getBackendOS(): Promise<OS.Type>;
31}
32//# sourceMappingURL=os.d.ts.map
\No newline at end of file