export declare class ExitIntercepted extends Error { code: number; constructor(code: number); } export interface CaptureCliOptions { swallowErrors?: boolean; } export declare function captureCliOutput(fn: () => Promise, options?: CaptureCliOptions): Promise; export declare function appendCapturedLog(text: string): void;