import type { Logger } from '@onerepo/logger'; import type { Graph } from '@onerepo/graph'; import type { Lifecycle } from '../../types'; /** * Run Lifecycle tasks in commands other than the `one tasks` command. Use this function when you have a command triggering a Lifecycle in non-standard ways. * * ```ts * await runTasks('pre-publish', ['-w', 'my-workspace'], graph); * ``` * @alpha * @group Subprocess * @param lifecycle The individual Lifecycle to trigger. * @param args Array of string arguments as if passed in from the command-line. * @param graph The current repository {@link Graph}. * @param logger Optional {@link Logger} instance. Defaults to the current `Logger` (usually there is only one). */ export declare function runTasks(lifecycle: Lifecycle, args: Array, graph: Graph, logger?: Logger): Promise;