import { type Result } from "@fjall/generator"; import type { DeployCallbacks, StackTarget } from "../../types/callbacks.js"; import type { DeployServices } from "../serviceFactory.js"; export declare const INFRA_STEPS: { readonly CONNECT: { readonly id: "connect"; readonly name: "Connect securely"; }; readonly PREPARE: { readonly id: "prepare-environment"; readonly name: "Prepare environment"; }; readonly DEPLOY: { readonly id: "deploy"; readonly name: "Deploy infrastructure"; }; readonly MONITORING: { readonly id: "monitoring"; readonly name: "Enable monitoring"; }; readonly ORG_DEPLOY: { readonly id: "organisation-deploy"; readonly name: "Deploying organisation"; }; readonly CASCADE_PLATFORM: { readonly id: "cascade-platform"; readonly name: "Deploying platform"; }; readonly CASCADE_ACCOUNTS: { readonly id: "cascade-accounts"; readonly name: "Deploying accounts"; }; }; export declare const INFRA_STEP_TOTAL = 4; /** * Emit §5.9 reconciler coordinates for the org path — post-synth, before the * first mutating CFN op — so a crashed run's in-flight stacks can be located * by name/account/region. No-ops when no consumer wired the callback or the * operation touches no stacks. */ export declare function emitOrgStackTargets(callbacks: DeployCallbacks, targets: readonly StackTarget[]): void; /** Complete the single-component PREPARE step as errored. */ export declare function failPrepareStep(callbacks: DeployCallbacks): void; /** Mask a failure message, surface it via onError, and return the failure. */ export declare function maskAndFail(callbacks: DeployCallbacks, message: string): Result; /** Best-effort stack-output read: log at debug on failure, never fail. */ export declare function readStackOutputsBestEffort(services: DeployServices, callbacks: DeployCallbacks, stackName: string, failureLogMessage: string, abortSignal?: AbortSignal): Promise | undefined>;