1 | type EnvObject = Record<string, string | undefined>;
|
2 | declare const env: EnvObject;
|
3 | declare const nodeENV: string;
|
4 |
|
5 |
|
6 | declare const platform: NodeJS.Platform;
|
7 |
|
8 | declare const isCI: boolean;
|
9 |
|
10 | declare const hasTTY: boolean;
|
11 |
|
12 | declare const hasWindow: boolean;
|
13 |
|
14 | declare const isDebug: boolean;
|
15 |
|
16 | declare const isTest: boolean;
|
17 |
|
18 | declare const isProduction: boolean;
|
19 |
|
20 | declare const isDevelopment: boolean;
|
21 |
|
22 | declare const isMinimal: boolean;
|
23 |
|
24 | declare const isWindows: boolean;
|
25 |
|
26 | declare const isLinux: boolean;
|
27 |
|
28 | declare const isMacOS: boolean;
|
29 |
|
30 | declare const isColorSupported: boolean;
|
31 |
|
32 | declare const nodeVersion: string | null;
|
33 | declare const nodeMajorVersion: number | null;
|
34 |
|
35 | interface Process extends Partial<Omit<typeof globalThis.process, "versions">> {
|
36 | env: EnvObject;
|
37 | versions: Record<string, string>;
|
38 | }
|
39 | declare const process: Process;
|
40 |
|
41 | type ProviderName = "" | "appveyor" | "aws_amplify" | "azure_pipelines" | "azure_static" | "appcircle" | "bamboo" | "bitbucket" | "bitrise" | "buddy" | "buildkite" | "circle" | "cirrus" | "cloudflare_pages" | "codebuild" | "codefresh" | "drone" | "drone" | "dsari" | "github_actions" | "gitlab" | "gocd" | "layerci" | "hudson" | "jenkins" | "magnum" | "netlify" | "nevercode" | "render" | "sail" | "semaphore" | "screwdriver" | "shippable" | "solano" | "strider" | "teamcity" | "travis" | "vercel" | "appcenter" | "codesandbox" | "stackblitz" | "stormkit" | "cleavr" | "zeabur" | "codesphere" | "railway" | "deno-deploy" | "firebase_app_hosting";
|
42 | type ProviderInfo = {
|
43 | name: ProviderName;
|
44 | ci?: boolean;
|
45 | [meta: string]: any;
|
46 | };
|
47 |
|
48 | declare const providerInfo: ProviderInfo;
|
49 | declare const provider: ProviderName;
|
50 |
|
51 | type RuntimeName = "workerd" | "deno" | "netlify" | "node" | "bun" | "edge-light" | "fastly" | "";
|
52 | type RuntimeInfo = {
|
53 | name: RuntimeName;
|
54 | };
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 |
|
62 | declare const isNode: boolean;
|
63 |
|
64 |
|
65 |
|
66 | declare const isBun: boolean;
|
67 |
|
68 |
|
69 |
|
70 | declare const isDeno: boolean;
|
71 |
|
72 |
|
73 |
|
74 | declare const isFastly: boolean;
|
75 |
|
76 |
|
77 |
|
78 | declare const isNetlify: boolean;
|
79 |
|
80 |
|
81 |
|
82 |
|
83 | declare const isEdgeLight: boolean;
|
84 |
|
85 |
|
86 |
|
87 | declare const isWorkerd: boolean;
|
88 | declare const runtimeInfo: RuntimeInfo | undefined;
|
89 | declare const runtime: RuntimeName;
|
90 |
|
91 | export { type EnvObject, type Process, type ProviderInfo, type ProviderName, type RuntimeInfo, type RuntimeName, env, hasTTY, hasWindow, isBun, isCI, isColorSupported, isDebug, isDeno, isDevelopment, isEdgeLight, isFastly, isLinux, isMacOS, isMinimal, isNetlify, isNode, isProduction, isTest, isWindows, isWorkerd, nodeENV, nodeMajorVersion, nodeVersion, platform, process, provider, providerInfo, runtime, runtimeInfo };
|