import type { InstallerAdapter, AdapterConfig } from './types.js'; import type { InstallerEventEmitter } from '../events.js'; /** * CLI adapter that renders wizard events via clack. * * Subscribes to InstallerEventEmitter and translates events into * clack UI operations (logs, spinners, prompts). */ export declare class CLIAdapter implements InstallerAdapter { readonly emitter: InstallerEventEmitter; private sendEvent; private debug; private spinner; private isStarted; private progress; private scaffolded; private scaffoldPackageManager; private handlers; private isPromptActive; private pendingLogs; private sigIntHandler; private agentUpdateInterval; constructor(config: AdapterConfig); /** * Queue a log call if a prompt is active, otherwise execute immediately. */ private queueableLog; /** * Flush any queued logs after prompt completes. */ private flushPendingLogs; start(): Promise; stop(): Promise; private stopAgentUpdates; private stopSpinner; /** Debug logging - only outputs when debug mode is enabled */ private debugLog; /** * Helper to subscribe and track handlers for cleanup. */ private subscribe; private handleStateEnter; private handleStateExit; private handleAuthSuccess; private handleAuthFailure; private handleDetectionComplete; private handleDetectionNone; private handleCredentialsFound; private handleEnvScanPrompt; private handleDeviceStarted; private handleDeviceSuccess; private handleStagingFetching; private handleStagingSuccess; private handleEnvCredentialsFound; private handleGitDirty; private handleCredentialsRequest; private handleConfigComplete; private handleAgentStart; private handleAgentProgress; private handleValidationStart; private handleValidationIssues; private handleValidationComplete; private handleComplete; private handleError; private handleScaffoldPrompt; private handleScaffoldStart; private handleScaffoldProgress; private handleScaffoldComplete; private handleScaffoldFailed; private handleBranchPrompt; private handleBranchCreated; private handlePostInstallChanges; private handleCommitPrompt; private handleCommitGenerating; private handleCommitSuccess; private handleCommitFailed; private handlePrPrompt; private handlePrGenerating; private handlePrPushing; private handlePrSuccess; private handlePrFailed; private handlePushFailed; private handleManualInstructions; }