/** * Attach/read the classified `DeploymentFailure` on a terminal error WITHOUT * wrapping it in a new class — consumers branch on error identity * (`instanceof DriftRepairAvailableError` drives the CLI repair offer), so a * wrapper would silently break them. This is the Result-side twin of the * `onDeploymentFailure` callback. */ import { type DeploymentFailure } from "@fjall/util"; /** * Attach the record to the error, non-enumerably so serialisers and message * formatters do not double-ship it. Returns the same error instance. */ export declare function attachDeploymentFailure(error: E, failure: DeploymentFailure): E; /** * Read a previously attached record; undefined when absent or malformed * (validated via the schema, never cast). */ export declare function getDeploymentFailure(error: unknown): DeploymentFailure | undefined;