void-cmd
Version:
AI-powered CLI tool that converts natural language to shell commands using Cerebras API
23 lines (22 loc) • 746 B
TypeScript
import { CerebrasConfig } from '../types';
interface Settings {
apiKey?: string;
baseUrl?: string;
model?: string;
}
interface CommandHistoryEntry {
command: string;
timestamp: string;
safety: string;
exitCode?: number;
success?: boolean;
error?: string;
}
export declare const loadSettings: () => Settings;
export declare const saveSettings: (settings: Settings) => void;
export declare const getCerebrasConfig: () => CerebrasConfig;
export declare const getSettingsFilePath: () => string;
export declare const ensureSettingsFileExists: () => void;
export declare const loadCommandHistory: () => CommandHistoryEntry[];
export declare const saveCommandHistory: (entry: CommandHistoryEntry) => void;
export {};