import type { Command as Program } from 'commander'; /** * Type describing action callback function. */ type actionCallbackFunction = Parameters[0]; /** * Options controlling CLI process-exit behavior after one command action finishes. * * @private internal helper type for CLI commands */ type HandleActionErrorsOptions = { readonly isExitingOnSuccess?: boolean; }; /** * Wraps action to handle error console logging and exit process with error code. * * @private internal helper function for CLI commands */ export declare function handleActionErrors(action: actionCallbackFunction, options?: HandleActionErrorsOptions): actionCallbackFunction; export {};