2017-05-17 13:59:10 +00:00
|
|
|
export interface IEnvObject {
|
|
|
|
name: string;
|
|
|
|
value: string;
|
|
|
|
}
|
|
|
|
export declare class Smartenv {
|
2018-02-13 23:12:21 +00:00
|
|
|
readonly runtimeEnv: string;
|
|
|
|
readonly isBrowser: boolean;
|
|
|
|
readonly userAgent: string;
|
|
|
|
readonly isNode: boolean;
|
|
|
|
readonly nodeVersion: string;
|
|
|
|
readonly isCI: boolean;
|
|
|
|
isMacAsync(): Promise<boolean>;
|
|
|
|
isWindowsAsync(): Promise<boolean>;
|
|
|
|
isLinuxAsync(): Promise<boolean>;
|
2017-05-17 13:59:10 +00:00
|
|
|
/**
|
|
|
|
* get environment variables that fit the description
|
|
|
|
*/
|
|
|
|
/**
|
|
|
|
* prints the environment to console
|
|
|
|
*/
|
|
|
|
printEnv(): Promise<void>;
|
|
|
|
}
|