@juspay/neurolink
Version:
The pipe layer of an AI nervous system: one interface connecting provider neurons to your application, across three inference types — generate, stream and decide. `decide` returns typed, calibrated judgements from a non-generative model (~400ms, ~$0.00002
36 lines (35 loc) • 1.31 kB
TypeScript
/**
* Environment File Management Utilities for NeuroLink CLI
*
* Handles .env file operations including backup, update, and validation.
*/
import type { EnvBackupResult, EnvUpdateResult } from "../../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>;
};