import { type ITerminal, type ITerminalProvider } from '@rushstack/terminal'; import { RushConfiguration } from '../api/RushConfiguration'; import type { IBuiltInPluginConfiguration } from '../pluginFramework/PluginLoader/BuiltInPluginLoader'; import type { Subspace } from '../api/Subspace'; /** * Options for RushPnpmCommandLineParser */ export interface IRushPnpmCommandLineParserOptions { alreadyReportedNodeTooNewError?: boolean; builtInPluginConfigurations?: IBuiltInPluginConfiguration[]; terminalProvider?: ITerminalProvider; } /** * Controlled dependencies for exercising execution and synchronization in unit tests. * @internal */ export interface IRushPnpmCommandLineParserTestOptions { commandName: string; doRushUpdateAsync: () => Promise; rushConfiguration: RushConfiguration; subspace: Subspace; terminal: ITerminal; } export declare class RushPnpmCommandLineParser { #private; private constructor(); static initializeAsync(options: IRushPnpmCommandLineParserOptions): Promise; /** * Exercises argument validation without invoking the side-effectful constructor. * @internal */ static _validatePnpmUsageForTestingAsync(pnpmArgs: string[]): Promise; /** * Exercises post-execution synchronization with controlled dependencies. * @internal */ static _postExecuteForTestingAsync(testOptions: IRushPnpmCommandLineParserTestOptions): Promise; /** * Exercises package-manager execution with controlled dependencies. * @internal */ static _executeForTestingAsync(testOptions: IRushPnpmCommandLineParserTestOptions): Promise; executeAsync(): Promise; } //# sourceMappingURL=RushPnpmCommandLineParser.d.ts.map