UNPKG

@capgo/cli

Version:
28 lines (27 loc) • 960 B
import type { AppTodoProgress } from '../app/todo'; export type LocalOnboardingStep = 'add_code' | 'add_updater'; interface Billing { orgId: string; trialEndsAt: string | null; /** Org created without a free trial (direct offer): never mention a trial. */ trialSkipped?: boolean; plansUrl: string; } export type SetupNotice = { appId: string; secondary: string[]; } & ({ kind: 'setup'; product: string; title?: string; instruction?: string; action: string; } | { kind: 'plan'; completed: string[]; billing: Billing; }); export declare function getSetupNotice(appId: string, progress: AppTodoProgress, webHost?: string): SetupNotice | undefined; export declare function formatSetupNotice(notice: SetupNotice | undefined, now?: number): string | undefined; export declare function reconcileSetupProgress(progress: AppTodoProgress, reported: readonly LocalOnboardingStep[]): AppTodoProgress; export {};