interface LockOptions { timeout?: number; retryInterval?: number; maxRetries?: number; } /** * Simple file-based locking mechanism for .env files */ export declare class EnvFileLock { private filePath; private lockPath; private locked; private lockStartTime; constructor(filePath?: string); /** * Acquires a lock on the .env file */ acquire(options?: LockOptions): Promise; /** * Releases the lock */ release(): Promise; /** * Executes a function with exclusive access to the .env file */ withLock(fn: () => Promise, options?: LockOptions): Promise; /** * Checks if the file is currently locked */ isLocked(): Promise; private parseLockContent; private sleep; } /** * Safely reads the .env file with locking */ export declare const safeReadEnvFile: (filePath?: string) => Promise; /** * Safely writes to the .env file with locking and atomic operations */ export declare const safeWriteEnvFile: (lines: string[], filePath?: string) => Promise; /** * Cleans up any stale lock files */ export declare const cleanupStaleLocks: () => Promise; export {};