-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.d.ts
47 lines (38 loc) · 1.49 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
/// <reference types="@types/node" />
import { ChildProcessWithoutNullStreams } from "child_process";
declare namespace Installer {
type AddonExpr = URL | string;
interface ExtractOptions {
downloadFromRemote?: boolean;
token?: string;
name?: string;
}
interface InstallOptions {
installDependencies?: boolean;
searchInRegistry?: boolean;
token?: string;
}
interface InitOptions {
token?: string;
name?: string;
forceClean?: boolean;
}
interface ExprResult {
repoUserOrg: string;
repoName: string;
host: null | string;
}
export function initAgent(location: string, options?: InitOptions): Promise<string>;
export function runAgent(location: string, silent?: boolean, options?: object): Promise<ChildProcessWithoutNullStreams>;
export function installDependencies(cwd?: string, lock?: boolean): Promise<void>;
export function renameDirFromManifest(dir?: string, fileName?: string): Promise<string>;
export function extractAgent(dest: string, options?: ExtractOptions): Promise<string>;
export function installAddon(addonExpr: AddonExpr, dest: string, options?: InstallOptions): Promise<string>;
export function parseAddonExpr(addonExpr: AddonExpr): ExprResult;
export function setRegistryURL(url: URL): void;
export namespace CONSTANTS {
export const BUILT_IN_ADDONS: readonly string[];
}
}
export = Installer;
export as namespace Installer;