@pulzar/core
Version:
Next-generation Node.js framework for ultra-fast web applications with zero-reflection DI, GraphQL, WebSockets, events, and edge runtime support
52 lines • 2.13 kB
TypeScript
import { z } from "zod";
declare const EnvSchema: z.ZodObject<{
NODE_ENV: z.ZodDefault<z.ZodEnum<["development", "production", "test"]>>;
PORT: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
HOST: z.ZodDefault<z.ZodString>;
DATABASE_URL: z.ZodOptional<z.ZodString>;
REDIS_URL: z.ZodOptional<z.ZodString>;
REDIS_HOST: z.ZodDefault<z.ZodString>;
REDIS_PORT: z.ZodDefault<z.ZodNumber>;
JWT_SECRET: z.ZodString;
JWT_EXPIRES_IN: z.ZodDefault<z.ZodString>;
CORS_ORIGIN: z.ZodDefault<z.ZodString>;
LOG_LEVEL: z.ZodDefault<z.ZodEnum<["trace", "debug", "info", "warn", "error", "fatal"]>>;
TRACING_ENABLED: z.ZodDefault<z.ZodEffects<z.ZodString, boolean, string>>;
SERVICE_NAME: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
PORT: number;
HOST: string;
NODE_ENV: "development" | "production" | "test";
REDIS_HOST: string;
REDIS_PORT: number;
JWT_SECRET: string;
JWT_EXPIRES_IN: string;
CORS_ORIGIN: string;
LOG_LEVEL: "error" | "warn" | "info" | "debug" | "trace" | "fatal";
TRACING_ENABLED: boolean;
SERVICE_NAME: string;
DATABASE_URL?: string | undefined;
REDIS_URL?: string | undefined;
}, {
JWT_SECRET: string;
PORT?: string | undefined;
HOST?: string | undefined;
NODE_ENV?: "development" | "production" | "test" | undefined;
DATABASE_URL?: string | undefined;
REDIS_URL?: string | undefined;
REDIS_HOST?: string | undefined;
REDIS_PORT?: number | undefined;
JWT_EXPIRES_IN?: string | undefined;
CORS_ORIGIN?: string | undefined;
LOG_LEVEL?: "error" | "warn" | "info" | "debug" | "trace" | "fatal" | undefined;
TRACING_ENABLED?: string | undefined;
SERVICE_NAME?: string | undefined;
}>;
export type Env = z.infer<typeof EnvSchema>;
export declare function loadEnv(): Env;
export declare function getEnv(key: keyof Env): string | undefined;
export declare function isDevelopment(): boolean;
export declare function isProduction(): boolean;
export declare function isTest(): boolean;
export {};
//# sourceMappingURL=env.d.ts.map