import type { CommandLineParameter } from '@rushstack/ts-command-line'; import { BaseScriptAction, type IBaseScriptActionOptions } from './BaseScriptAction'; import type { IGlobalCommandConfig } from '../../api/CommandLineConfiguration'; import { type JsonFileLoadCache } from '../../utilities/JsonFileLoadCache'; /** * Constructor parameters for GlobalScriptAction. */ export interface IGlobalScriptActionOptions extends IBaseScriptActionOptions { shellCommand: string; autoinstallerName: string | undefined; providedByPlugin: boolean; /** The cache of a long-lived engine host, through which the action reads its autoinstaller's package.json. */ jsonFileLoadCache?: JsonFileLoadCache; } /** * This class implements custom commands that are run once globally for the entire repo * (versus bulk commands, which run separately for each project). The action executes * a user-defined script file. * * @remarks * Bulk commands can be defined via common/config/command-line.json. Rush's predefined "build" * and "rebuild" commands are also modeled as bulk commands, because they essentially just * invoke scripts from package.json in the same way as a custom command. */ export declare class GlobalScriptAction extends BaseScriptAction { #private; constructor(options: IGlobalScriptActionOptions); /** * {@inheritDoc IGlobalCommand.setHandled} */ setHandled(): void; /** * {@inheritDoc IGlobalCommand.getCustomParametersByLongName} */ getCustomParametersByLongName(longName: string): TParameter; runAsync(): Promise; } //# sourceMappingURL=GlobalScriptAction.d.ts.map