/** * @typedef {{config: object, configPath: string, stage: import('#types').StageConfig}} PreparedCommandContext */ /** * @param {import('#types').CommandOptions} options * @param {string} stageName * @returns {Promise} */ export function prepareCommandContext(options: import("#types").CommandOptions, stageName: string): Promise; /** * @param {PreparedCommandContext} prepared * @param {{reporter?: import('../core/reporter.js').Reporter}} [opts] * @returns {{config: object, configPath: string, stage: import('#types').StageConfig, transport: import('#types').Transport}} */ export function commandContextFromPrepared(prepared: PreparedCommandContext, { reporter }?: { reporter?: import("../core/reporter.js").Reporter; }): { config: object; configPath: string; stage: import("#types").StageConfig; transport: import("#types").Transport; }; /** * @param {import('#types').CommandOptions} options * @param {string} stageName * @param {{reporter?: import('../core/reporter.js').Reporter}} [opts] * @returns {Promise<{config: object, configPath: string, stage: import('#types').StageConfig, transport: import('#types').Transport}>} */ export function commandContext(options: import("#types").CommandOptions, stageName: string, { reporter }?: { reporter?: import("../core/reporter.js").Reporter; }): Promise<{ config: object; configPath: string; stage: import("#types").StageConfig; transport: import("#types").Transport; }>; /** * Load and validate configuration without constructing an operational transport. * * @param {import('#types').CommandOptions} options * @param {string} stageName * @returns {Promise<{config: object, configPath: string, stage: import('#types').StageConfig}>} */ export function structuralCommandContext(options: import("#types").CommandOptions, stageName: string): Promise<{ config: object; configPath: string; stage: import("#types").StageConfig; }>; export type PreparedCommandContext = { config: object; configPath: string; stage: import("#types").StageConfig; }; //# sourceMappingURL=context.d.ts.map