UNPKG

datapilot-cli

Version:

Enterprise-grade streaming multi-format data analysis with comprehensive statistical insights and intelligent relationship detection - supports CSV, JSON, Excel, TSV, Parquet - memory-efficient, cross-platform

68 lines 1.66 kB
/** * Interactive prompts for DataPilot CLI * Provides user-friendly prompts for missing arguments and confirmations */ export interface PromptOptions { type: 'input' | 'confirm' | 'select' | 'multiselect'; message: string; default?: unknown; choices?: Array<{ name: string; value: unknown; }>; validate?: (input: unknown) => boolean | string; } export declare class InteractivePrompt { private rl; constructor(); /** * Prompt for CSV file selection */ promptForFile(currentDir?: string): Promise<string>; /** * Prompt for custom file path */ private promptForCustomPath; /** * Prompt for command selection */ promptForCommand(): Promise<string>; /** * Prompt for output format */ promptForOutputFormat(): Promise<string>; /** * Confirm processing of large file */ confirmLargeFile(filePath: string, size: number): Promise<boolean>; /** * Prompt for performance options */ promptForPerformanceOptions(fileSize: number): Promise<any>; /** * Basic prompt implementation */ private prompt; /** * Find CSV files in directory */ private findCSVFiles; /** * Format file size for display */ private formatFileSize; /** * Estimate processing time based on file size */ private estimateProcessingTime; /** * Recommend memory based on file size */ private recommendedMemory; /** * Cleanup resources */ close(): void; } export default InteractivePrompt; //# sourceMappingURL=interactive-prompt.d.ts.map