import { PluginInvokeProcess, PluginLifecycle } from '@ones-open/cli-utils'; import type { ProjectLocalConfig, ProjectPluginConfig } from '@ones-open/cli-utils'; import type { InvokeCLIOptionsSchema } from '@ones-open/cli-utils'; import type { ListrTask } from 'listr'; import type { StatsOptions } from 'webpack'; import webpackDevServer from 'webpack-dev-server'; type InvokeProcess = `${PluginInvokeProcess}`; type InvokeLifecycle = `${PluginLifecycle}`; type InvokeTarget = InvokeProcess | InvokeLifecycle; interface InvokeCLISchemedOptions { webpackStatsPreset: StatsOptions['preset']; reinstallPlugin: string; } declare function isInvokeCommandAllowTarget(target: string): target is InvokeTarget; declare function validateProjectCanExecuteInvokeCommand(currentWorkingDirectory?: string): Promise; interface GetFrontEndDevServerParams { schemedOptions: InvokeCLISchemedOptions; port?: string | number; localConfig?: ProjectLocalConfig; pluginConfig?: ProjectPluginConfig; currentWorkingDirectory?: string; } declare function getFrontEndDevServer({ port, schemedOptions: { webpackStatsPreset }, localConfig, pluginConfig, currentWorkingDirectory, }: GetFrontEndDevServerParams): Promise; interface InvokeLifecycleTask { schemedOptions: InvokeCLISchemedOptions; nodeHostParameter: { nodeHostPath: string; nodeHostParams: string[]; }; frontEndDevServer: webpackDevServer; localConfig: ProjectLocalConfig; pluginConfig: ProjectPluginConfig; } declare function getInvokePrepTasks(target: InvokeTarget, options: InvokeCLIOptionsSchema): Promise[]>; declare function getInvokeFrontEndTasks(currentWorkingDirectory?: string): ListrTask[]; declare function getInvokeBackendTasks(target: InvokeTarget): ListrTask[]; export { isInvokeCommandAllowTarget, validateProjectCanExecuteInvokeCommand, getFrontEndDevServer, getInvokePrepTasks, getInvokeFrontEndTasks, getInvokeBackendTasks, }; //# sourceMappingURL=index.d.ts.map