/** * InitScreen - Full Ink-based init workflow * * Handles the complete project initialization flow within the TUI. * High-level steps (some may be skipped if already configured): * 1. Scanning project structure * 2. Provider selection * 3. API key collection (if needed) + optional save * 4. Model selection * 5. AI analysis (agentic) * 6. Confirmation + file generation * * Wrapped in AppShell for consistent layout. */ import React from 'react'; import type { SessionState } from '../../repl/session-state.js'; /** * Props for the InitScreen component */ export interface InitScreenProps { /** Pre-built header element from App */ header: React.ReactNode; /** Project root directory */ projectRoot: string; /** Current session state */ sessionState: SessionState; /** Called when initialization is complete (with optional generated files list) */ onComplete: (newState: SessionState, generatedFiles?: string[]) => void; /** Called when user cancels */ onCancel: () => void; } /** * InitScreen component * * The complete Ink-based init workflow wrapped in AppShell. */ export declare function InitScreen({ header, projectRoot, sessionState, onComplete, onCancel, }: InitScreenProps): React.ReactElement;