UNPKG

@capgo/cli

Version:
29 lines (28 loc) 1.07 kB
export interface OnboardingSupportSection { title: string; lines: string[]; } export interface OnboardingSupportBundleInput { kind: 'init' | 'build-init' | 'build-request'; error: string; appId?: string; currentStep?: string; packageManager?: string; cwd?: string; commands?: string[]; docs?: string[]; logs?: string[]; sections?: OnboardingSupportSection[]; } export declare function renderOnboardingSupportBundle(input: OnboardingSupportBundleInput): string; export declare const SUPPORT_GZ_CAP_BYTES: number; export declare function renderBundleWithinGzCap(input: OnboardingSupportBundleInput, capBytes?: number, onPass?: () => void): { rendered: string; gz: Buffer; }; export declare function writeOnboardingSupportBundle(input: OnboardingSupportBundleInput, supportDir?: string): string | null; export interface SupportBundleFiles { logPath: string; gzPath: string; } export declare function writeSupportBundleFiles(input: OnboardingSupportBundleInput, supportDir?: string): SupportBundleFiles | null;