import { Command, Option, CommanderError, InvalidArgumentError } from "commander"; export { Command, Option, CommanderError, InvalidArgumentError }; export declare function integer(value: string): number; export declare function duration(value: string): number; export declare function program(name: string, description: string, version: string): Command; export declare function common(command: Command, prefix: string): Command; export declare function configFile(path: string | undefined): Promise>; export declare function configFileSync(path: string | undefined): Record; export declare function applyConfig(command: Command, config: Record): void; export type Event = { phase: string; message: string; level?: "debug" | "info" | "warn" | "error"; completed?: number; total?: number; elapsedMs?: number; [key: string]: unknown; }; export type Observe = (event: Event) => void; export declare function reporter(options?: Record): { emit: Observe; close: () => void; }; export declare function cancellation(): { signal: AbortSignal; dispose: () => void; }; export declare function fail(name: string, error: unknown, json?: boolean): void;