UNPKG

mya-cli

Version:

MYA - AI-Powered Stock & Options Analysis CLI Tool

44 lines (43 loc) 1.35 kB
/** * Worker environment variable provider implementation */ import { EnvironmentProvider } from '../interfaces/storage-interfaces.js'; /** * Worker-based environment variable provider * Single responsibility: load and provide environment variables from Worker env */ export declare class WorkerEnvironmentProvider implements EnvironmentProvider { private env; /** * Create a new environment provider * @param workerEnv Worker environment object */ constructor(workerEnv: Record<string, string>); /** * Load environment variables (no-op for Worker env) */ loadEnvironment(): void; /** * Get environment variable value * @param key Environment variable key * @returns Environment variable value or undefined */ get(key: string): string | undefined; /** * Set environment variable value * @param key Environment variable key * @param value Environment variable value */ set(key: string, value: string): void; /** * Check if environment variable exists * @param key Environment variable key * @returns True if environment variable exists */ has(key: string): boolean; /** * Get all environment variables * @returns Object with all environment variables */ getAll(): Record<string, string>; }