@twelvehart/envctl
Version:
Environment variable context manager for development workflows
25 lines • 961 B
TypeScript
import { Profile } from './types';
export declare class Storage {
private config;
constructor();
private ensureDirectories;
private getSessionId;
private get sessionBackupFilePath();
private isSessionActive;
private cleanupOrphanedBackups;
private get backupFilePath();
saveProfile: (profile: Profile) => Promise<void>;
loadProfile: (name: string) => Promise<Profile | null>;
deleteProfile: (name: string) => Promise<boolean>;
listProfiles: () => Promise<string[]>;
getCurrentlyLoadedProfile: () => Promise<string | null>;
saveBackup: (variables: Record<string, string>) => Promise<void>;
loadBackup: () => Promise<Record<string, string>>;
clearBackup: () => Promise<void>;
listActiveSessions: () => Promise<Array<{
sessionId: string;
profileName: string;
}>>;
parseEnvFile: (filePath: string) => Promise<Record<string, string>>;
}
//# sourceMappingURL=storage.d.ts.map