export interface IParsedCommand { type: CommandsName; data: IInstallationCommandOptions | IUninstallationCommandOptions | IListCommandOptions; } export declare const CONDA_ALIASES: readonly ["micromamba", "un", "mamba", "conda", "rattler"]; export type TCondaAliases = (typeof CONDA_ALIASES)[number]; export type CommandsName = 'install' | 'list' | 'remove'; export interface ICommandData { commands: IParsedCommand[]; run: string; } export interface IInstallationCommandOptions { type: 'conda' | 'pip'; specs: string[]; channels: string[]; } export interface IUninstallationCommandOptions { type: 'conda' | 'pip'; specs: string[]; } export interface IListCommandOptions { type: 'conda' | 'pip'; } /** * Parses a command-line string and classifies it into installation commands, * runnable code, or conda list operations. * * - If the code is a list command, it sets the `list` flag to true. * - If the code contains conda or pip installation command, then it tries to parse it * - Otherwise code will be executed as it is * * @param {string} input - The raw command-line input string to be parsed. * @returns {ICommands} An object containing: * - parsed installation options, * - run command code, * - and a list flag indicating whether a list command was detected. */ export declare function parse(input: string): ICommandData;