interface CLIRunnerOptions { /** * If true, we throw process.exit and process.abort as errors, if false, we return them as strings from run */ throwProcessErrors: boolean; /** * A map of environment variables to add */ env?: Record; /** * Callback function that will be trigger when std out is called by the process * * @param data * @returns */ onStdOut?: (data: string) => void; /** * Callback function that will be trigger when std err is called by the process * * @param data * @returns */ onStdErr?: (data: string) => void; } export declare class CLIRunner { readonly throwProcessErrors: boolean; readonly env: Record; private onStdOut?; private onStdErr?; constructor(options?: CLIRunnerOptions); /** * * @param cliModuleUrl - the resolved url of the script : require.resolve('.my-script-local-path') * @param args - cli arguments array that you want to have present on the running * @return the string message equivalent of the process.exit or abort that ended the process or null if it exited organically */ run(cliModuleUrl: string, args?: string[]): Promise; } export {};