/** * `recoverAll()`'s per-entry error isolation — split out of `transition.ts`, * which has no headroom under this repository's 500-line implementation-file * ceiling for the WFT-134 claim-release wrapping `recoverEntryOrIsolateFailure` * needed (mirrors `resume-body.ts`'s same split). This file's own job is just * the branch-matching: given the error `resume()` rejected with, either * isolate it to just this workflow (returning `null`) or rethrow it. * * @module core/engine/lifecycle/recovery-isolation */ import type { WorkflowHandle } from '../handles.ts'; import type { LifecycleCallbacks, RecoverAllOptions } from './shared.ts'; /** * Isolate one `recoverAll()` entry's failure to just this workflow when it * matches a known-recoverable error, committing the matching `failWorkflowForXxx` * fenced write; rethrows anything else, including an opted-in * `VersionMismatchError` throw. See `transition.ts`'s `recoverEntryOrIsolateFailure` * for the caller-side claim-release wrapping around this. */ export declare function isolateRecoveryFailure(workflowId: string, callbacks: LifecycleCallbacks, options: RecoverAllOptions | undefined, error: unknown): Promise;