UNPKG

@capgo/cli

Version:
26 lines (25 loc) 1.31 kB
import type { FC } from 'react'; import type { AndroidOnboardingProgress } from '../types.js'; import type { OnboardingResult } from '../../types.js'; import type { OnboardingBeforeExit } from '../../ui/exit.js'; interface AppProps { appId: string; initialProgress: AndroidOnboardingProgress | null; androidDir: string; /** Optional Capgo API key passed via -a/--apikey flag; takes precedence over saved key. */ apikey?: string; supaHost?: string; /** Correlation id for this onboarding run; emitted as `journey_id` on every analytics event. */ journeyId: string; /** Reports the current step to the shell on every transition, so the caller can * record where the user dropped off for the quit event. */ onStep?: (step: string) => void; /** Reports the wizard outcome to the shell when it reaches build-complete, so * the caller prints an accurate post-exit message + durable summary instead of * always claiming success. Never fires on cancel/missing-platform exits. */ onResult?: (result: OnboardingResult) => void; /** Awaited immediately before Ink exits so replay can capture the alt-screen frame. */ onBeforeExit?: OnboardingBeforeExit; } declare const AndroidOnboardingApp: FC<AppProps>; export default AndroidOnboardingApp;