UNPKG

@capgo/cli

Version:
22 lines (21 loc) 648 B
import type { FC } from 'react'; import type { PlatformPickerLayout } from './frame-fit.js'; export type UpdateChoice = 'update' | 'skip'; export type UpdateKeyAction = { type: 'select'; choice: UpdateChoice; } | { type: 'confirm'; } | null; export declare function updatePromptKeyAction(input: string, key: { leftArrow?: boolean; rightArrow?: boolean; return?: boolean; }): UpdateKeyAction; export interface UpdatePromptProps { layout: PlatformPickerLayout; currentVersion: string; latestVersion: string; onDecide: (choice: UpdateChoice) => void; } export declare const UpdatePrompt: FC<UpdatePromptProps>;