UNPKG

rawi

Version:

Rawi (راوي) is the developer-friendly AI CLI that brings the power of 11 major AI providers directly to your terminal. With seamless shell integration, persistent conversations, and 200+ specialized prompt templates, Rawi transforms your command line into

26 lines (23 loc) 967 B
import { RawiConfig, RawiCredentials } from '../../shared/types.cjs'; import { IConfigManager } from '../interfaces/config-manager.interface.cjs'; import { IConfigPersistence } from '../interfaces/persistence.interface.cjs'; declare class BaseConfigManager implements IConfigManager, IConfigPersistence { protected readonly configDir: string; protected readonly configFile: string; protected readonly backupFile: string; constructor(); ensureConfigDir(): void; configExists(): boolean; readConfig(): RawiConfig; writeConfig(config: RawiConfig): void; backupConfig(): void; restoreConfig(): void; getCredentials(profile?: string): RawiCredentials | null; setCredentials(credentials: RawiCredentials, profile?: string): void; listProfiles(): string[]; deleteProfile(profile: string): boolean; getConfigFile(): string; getConfigDir(): string; getBackupFile(): string; } export { BaseConfigManager };