UNPKG

@juspay/neurolink

Version:

Universal AI Development Platform with working MCP integration, multi-provider support, voice (TTS/STT/realtime), and professional CLI. 58+ external MCP servers discoverable, multimodal file processing, RAG pipelines. Build, test, and deploy AI applicatio

36 lines (35 loc) 1.31 kB
/** * Environment File Management Utilities for NeuroLink CLI * * Handles .env file operations including backup, update, and validation. */ import type { EnvBackupResult, EnvUpdateResult } from "../../lib/types/index.js"; /** * Create a timestamped backup of the existing .env file */ export declare function backupEnvFile(envPath?: string): EnvBackupResult; /** * Parse .env file content into key-value pairs */ export declare function parseEnvFile(content: string): Record<string, string>; /** * Generate .env file content from key-value pairs */ export declare function generateEnvContent(envVars: Record<string, string>, existingContent?: string, keysToDelete?: string[]): string; /** * Update .env file with new environment variables */ export declare function updateEnvFile(newVars: Record<string, string>, envPath?: string, createBackup?: boolean, keysToDelete?: string[]): EnvUpdateResult; /** * Display environment file update summary */ export declare function displayEnvUpdateSummary(result: EnvUpdateResult, quiet?: boolean): void; /** * Validate .env file format and required variables */ export declare function validateEnvFile(envPath?: string, requiredVars?: string[]): { valid: boolean; errors: string[]; warnings: string[]; variables: Record<string, string>; };