declare global { namespace NodeJS { interface ProcessEnv { NODE_ENV: "development" | "test" | "production"; } } } export declare const validEnvs: readonly ["development", "test", "production"]; export type NodeEnv = (typeof validEnvs)[number]; export declare const isValidEnv: (env: string) => env is NodeEnv; export declare function getNodeEnv(currentEnv?: E): NodeEnv; /** * Detects whether the current Node process is running under the * `react-server` resolution condition — set with `--conditions react-server` * on the command line, or via `NODE_OPTIONS` containing the same flag. * * Servers rendering React Server Components run under this condition so * that `react` and `react-server-dom-esm` resolve to their server-side * exports. */ export declare function isReactServerCondition(): boolean; //# sourceMappingURL=env.d.ts.map