UNPKG

@capgo/cli

Version:
24 lines (23 loc) • 885 B
import type { FC, ReactNode } from 'react'; import type { BuilderAppSelectionServices } from '../app-selection.js'; export interface AppSelectionEvent { phase: 'shown' | 'resolved' | 'error'; result?: 'exact_match' | 'selected' | 'list' | 'read' | 'missing' | 'build' | 'permission' | 'config' | 'api'; source?: 'closest_list' | 'full_list'; visibleCount: number; } export interface BuilderAppSelectionGateProps { apikey: string; suggestedId: string; suggestedSource: 'builder' | 'capacitor'; services: BuilderAppSelectionServices; cols: number; rows: number; footer?: ReactNode; onSelected: (appId: string) => void; onSwitchKey: () => void; onCancel: () => void; onEvent?: (event: AppSelectionEvent) => void; } declare const BuilderAppSelectionGate: FC<BuilderAppSelectionGateProps>; export default BuilderAppSelectionGate;