@capgo/cli
Version:
A CLI to upload to capgo servers
22 lines (21 loc) • 648 B
TypeScript
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>;