/** * @param {unknown} error * @returns {error is RuntimeIncumbentPreservedError} */ export function isRuntimeIncumbentPreservedError(error: unknown): error is RuntimeIncumbentPreservedError; /** * @param {unknown} error * @returns {error is RuntimeRecoveryFailedError} */ export function isRuntimeRecoveryFailedError(error: unknown): error is RuntimeRecoveryFailedError; /** * A candidate runtime rejected an activation transaction while leaving the * existing incumbent authoritative. Automatic runtime restoration must not * redeploy that incumbent because doing so can destroy state the failed * transaction deliberately preserved. */ export class RuntimeIncumbentPreservedError extends Error { /** * @param {string} message * @param {{cause?: unknown, recovery?: import('#types').GenerationTransitionRecovery}} [opts] */ constructor(message: string, { cause, recovery }?: { cause?: unknown; recovery?: import("#types").GenerationTransitionRecovery; }); /** @type {true} */ incumbentRuntimePreserved: true; /** @type {import('#types').GenerationTransitionRecovery|undefined} */ recovery: import("#types").GenerationTransitionRecovery | undefined; } /** A runtime owner attempted its bounded recovery but could not verify authority. */ export class RuntimeRecoveryFailedError extends Error { /** * @param {string} message * @param {{cause?: unknown, recovery: Record}} opts */ constructor(message: string, { cause, recovery }: { cause?: unknown; recovery: Record; }); /** @type {true} */ runtimeRecoveryAttempted: true; /** @type {Record} */ recovery: Record; } //# sourceMappingURL=runtime-errors.d.ts.map