UNPKG

qraft

Version:

A powerful CLI tool to qraft structured project setups from GitHub template repositories

49 lines 1.68 kB
import { BoxManager } from '../core/boxManager'; import { BoxInfo } from '../types'; /** * Interactive box selector with search, filtering, and preview capabilities */ export declare class InteractiveBoxSelector { private boxManager; private prompts; constructor(boxManager: BoxManager); /** * Interactive box selection with full features * @param registryName Optional specific registry to search * @returns Promise<{box: BoxInfo, registry: string} | null> Selected box and registry or null if cancelled */ selectBox(registryName?: string): Promise<{ box: BoxInfo; registry: string; } | null>; /** * Interactive selection with search, filter, and preview * @param boxes Available boxes * @param registryName Registry name * @returns Promise<{box: BoxInfo, registry: string} | null> Selected box or null */ private interactiveSelection; /** * Filter boxes based on search query * @param boxes All available boxes * @param query Search query * @returns Filtered boxes */ private filterBoxes; /** * Show box preview and get confirmation * @param box Box to preview * @returns Promise<boolean> Whether user confirmed selection */ private previewAndConfirm; /** * Quick box selection without full interactive features * @param registryName Optional registry name * @returns Promise<{box: BoxInfo, registry: string} | null> Selected box or null */ quickSelect(registryName?: string): Promise<{ box: BoxInfo; registry: string; } | null>; } //# sourceMappingURL=boxSelector.d.ts.map