UNPKG

1.21 kBTypeScriptView Raw
1import { Interfaces } from './types';
2export declare function exec(command: string): Promise<{
3 stdout: string;
4 stderr: string;
5}>;
6export declare function getHostOS(): string;
7export declare function getInterfaceType(): Interfaces;
8export declare function homeDir(): string;
9export declare function log(...args: any[]): void;
10export declare function getStatePath(): string;
11export declare function getConfigPath(): string;
12export declare function setState(key: string, value: any): Promise<void>;
13export declare function getAllState(): Promise<any>;
14export declare function getState(key: string): Promise<any>;
15export declare function setConfig(key: string, value: string): Promise<void>;
16export declare function getConfig(key: string): Promise<string>;
17export declare function getAllConfig(): Promise<object>;
18export declare function deleteConfig(key: string): Promise<boolean>;
19export declare function getSecret(key: string, hidden?: boolean): Promise<any>;
20export declare function setSecret(key: string, value: string): Promise<any>;
21export declare function track(tags: string[] | string, metadata: object): Promise<void>;
22export declare function events(start: string, end?: string): Promise<any>;