/** * Helper functions for checking if commands exist. * * @module */ /** * Helper function to check if a specific command exists on the system by attempting to resolve it * with the "which" library. */ export declare function commandExists(commandName: string): Promise; /** * Helper function to get the locally installed Python command. In most cases, this will be * "python", but on Ubuntu it will be "python3" (for legacy reasons). This is necessary to know if * JavaScript/TypeScript is launching Python. * * Returns undefined if Python is not installed on the system. * * @param fatal Whether to exit the program if Python is not found. */ export declare function getPythonCommand(fatal: true): Promise<"python" | "python3">; export declare function getPythonCommand(fatal: false): Promise<"python" | "python3" | undefined>; //# sourceMappingURL=commands.d.ts.map