@capgo/cli
Version:
A CLI to upload to capgo servers
76 lines (75 loc) • 3.15 kB
TypeScript
import type { FC } from 'react';
export type KeystoreMethodChoice = 'existing' | 'generate' | 'learn';
export interface KeystoreMethodSelectStepProps {
onChoose: (choice: KeystoreMethodChoice) => void;
dense?: boolean;
}
export declare const KeystoreMethodSelectStep: FC<KeystoreMethodSelectStepProps>;
export interface KeystoreExplainerStepProps {
onBack: () => void;
dense?: boolean;
}
export declare const KeystoreExplainerStep: FC<KeystoreExplainerStepProps>;
export interface KeystoreExistingPathStepProps {
/** When true, render the picker-vs-manual chooser; else the path text input. */
showChooser: boolean;
onChoosePicker: () => void;
onChooseManual: () => void;
onSubmitPath: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreExistingPathStep: FC<KeystoreExistingPathStepProps>;
export declare const KeystoreExistingPickerStep: FC;
export interface KeystoreExistingStorePasswordStepProps {
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreExistingStorePasswordStep: FC<KeystoreExistingStorePasswordStepProps>;
export declare const KeystoreExistingDetectingAliasStep: FC;
export interface KeystoreExistingAliasSelectStepProps {
aliases: string[];
onSelect: (alias: string) => void;
dense?: boolean;
}
export declare const KeystoreExistingAliasSelectStep: FC<KeystoreExistingAliasSelectStepProps>;
export interface KeystoreExistingAliasStepProps {
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreExistingAliasStep: FC<KeystoreExistingAliasStepProps>;
export interface KeystoreExistingKeyPasswordStepProps {
/** `probing` shows a spinner while we auto-detect; `prompt` asks the user. */
mode: 'probing' | 'prompt';
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreExistingKeyPasswordStep: FC<KeystoreExistingKeyPasswordStepProps>;
export interface KeystoreNewAliasStepProps {
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreNewAliasStep: FC<KeystoreNewAliasStepProps>;
export type KeystorePasswordMethodChoice = 'random' | 'manual';
export interface KeystoreNewPasswordMethodStepProps {
onChoose: (choice: KeystorePasswordMethodChoice) => void;
dense?: boolean;
}
export declare const KeystoreNewPasswordMethodStep: FC<KeystoreNewPasswordMethodStepProps>;
export interface KeystoreNewStorePasswordStepProps {
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreNewStorePasswordStep: FC<KeystoreNewStorePasswordStepProps>;
export interface KeystoreNewKeyPasswordStepProps {
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreNewKeyPasswordStep: FC<KeystoreNewKeyPasswordStepProps>;
export interface KeystoreNewCommonNameStepProps {
/** Placeholder shown for the default (the app id). */
appId: string;
onSubmit: (value: string) => void;
dense?: boolean;
}
export declare const KeystoreNewCommonNameStep: FC<KeystoreNewCommonNameStepProps>;
export declare const KeystoreGeneratingStep: FC;