export type LaunchRequest = { kind: 'isolated'; email: string; profileName: string; profileDir: string; } | { kind: 'use-profile'; profileName: string; profileDir: string; emailAddress: string; } | { kind: 'login-profile'; profileName: string; profileDir: string; } | { kind: 'login-then-isolated'; email: string; profileName: string; profileDir: string; }; export type ScreenExit = { kind: 'back'; } | { kind: 'launch'; req: LaunchRequest; }; export type Step = { kind: 'home'; } | { kind: 'pick-account'; purpose: 'isolated' | 'import'; } | { kind: 'pick-profile'; purpose: 'use' | 'login' | 'remove'; } | { kind: 'enter-name'; purpose: 'create' | 'import'; importEmail?: string; defaultName?: string; error?: string; } | { kind: 'confirm-remove'; profileName: string; } | { kind: 'note'; title: string; body: string; };