/** * Reads bounded live state using Rampway's existing release layout. * * @param {{stage: import('#types').StageConfig, transport: import('#types').Transport}} args - Context. * @returns {Promise>} Live state. */ export function readDeploymentStatus({ stage, transport }: { stage: import("#types").StageConfig; transport: import("#types").Transport; }): Promise>; /** * Creates the executor that translates a bounded target into Rampway's normal * deploy, rollback, and status functions. Dependency overrides are test-only. * * @param {object} [deps] - Overrides. * @param {typeof defaultCommandContextFromPrepared} [deps.commandContextFromPrepared] - Operational transport constructor. * @param {typeof runDeploy} [deps.deploy] - Deploy lifecycle. * @param {typeof defaultPrepareCommandContext} [deps.prepareCommandContext] - Structural context loader. * @param {typeof readDeploymentStatus} [deps.readDeploymentStatus] - Status reader. * @param {typeof runRollback} [deps.rollback] - Rollback lifecycle. * @param {typeof defaultWithCommandSshCredentials} [deps.withCommandSshCredentials] - Command credential scope. * @returns {RampwayDeploymentExecutor} Executor. */ export function createRampwayDeploymentExecutor({ commandContextFromPrepared, deploy, prepareCommandContext, readDeploymentStatus: statusReader, rollback, withCommandSshCredentials }?: { commandContextFromPrepared?: typeof defaultCommandContextFromPrepared | undefined; deploy?: typeof runDeploy | undefined; prepareCommandContext?: typeof defaultPrepareCommandContext | undefined; readDeploymentStatus?: typeof readDeploymentStatus | undefined; rollback?: typeof runRollback | undefined; withCommandSshCredentials?: typeof defaultWithCommandSshCredentials | undefined; }): RampwayDeploymentExecutor; export type RampwayDeploymentTarget = { configPath: string; releaseBranch: string; }; export type RampwayDeploymentExecutor = { validateRevision: (args: { project: string; revision: string; stage: string; target: RampwayDeploymentTarget; }) => Promise; deploy: (args: { project: string; revision: string; expectedActiveRevision?: string; runId: string; stage: string; target: RampwayDeploymentTarget; }) => Promise>; readStatus: (args: { project: string; stage: string; target: RampwayDeploymentTarget; }) => Promise>; }; import { commandContextFromPrepared as defaultCommandContextFromPrepared } from "../commands/context.js"; import { deploy as runDeploy } from "../core/deploy-runner.js"; import { prepareCommandContext as defaultPrepareCommandContext } from "../commands/context.js"; import { rollback as runRollback } from "../core/deploy-runner.js"; import { withCommandSshCredentials as defaultWithCommandSshCredentials } from "../transports/ssh-credentials.js"; //# sourceMappingURL=executor.d.ts.map