pulse-ai-utils
Version:
Utility functions and helpers for AI-powered applications
13 lines (12 loc) • 496 B
TypeScript
/**
* Loads environment variables from the root project's .env file
* This allows the lib to access API keys from the main project's .env
*/
export declare function loadRootEnv(): void;
/**
* Gets an environment variable with fallback pattern
* @param key The environment variable key
* @param defaultValue Optional default value
* @returns The environment variable value, fallback, or default
*/
export declare function getEnvVar(key: string, defaultValue?: string): string | undefined;