/** * Executes a given shell command using a child process. * * @param commandToUse - The command string to execute. If undefined, an error is thrown. * @throws Will throw an error if `commandToUse` is not provided. */ export declare const executeCommand: (commandToUse: string | undefined) => void; /** * Executes a shell command as a child process and handles its output streams. * * This function spawns a new child process to run the specified command using the system shell. * It listens to the process's stdout and stderr streams, performing the following actions: * - Validates output for known errors and excludes certain errors from logging. * - Logs and throws an error if a critical error is detected after a delay. * - Detects successful execution based on predefined success messages and exits the process. * - Simulates user input by writing 'y' to the process's stdin (useful for prompts). * * @param command - The shell command to execute. * * @remarks * The function relies on external constants (`ERROR_TO_EXCLUDE`, `ERROR_EXECUTION`, `SUCCESS_EXECUTION`) * and a `log` object for logging. It is designed for interactive command-line tools that may prompt for user input. * * @throws {Error} Throws an error if a critical execution error is detected in the output. */ export declare const childProcessRunCommandRun: (command: string) => void;