import type { EngineInternals } from '../internals.ts'; import type { RunnableFinalizer } from './finalizer-activity.ts'; /** * Resolve `type`'s `finalizer` against the workflow instance's own EXACT * pinned `revision` (WFT-17/WFT-19), awaiting a full dynamic-source resolve * when it is `registerSource()`-registered but unresolved on this process — * {@link getResolvedDynamicRegistration}'s sync-only lookup cannot close * that gap. Without this, a type never started/resumed/recovered here after * a fresh restart (only torn down) rearms its `wf-teardown:` timer forever, * since nothing else triggers the resolve `lastResolvedRevisionByName` * needs. Returns `undefined` (rearm) when `type` has no registration at * all, when the pinned revision cannot be resolved on this process * ({@link WorkflowRevisionUnavailableError}), or when the resolve itself * fails ({@link DynamicWorkflowSourceUnavailableError}) — a load failure * here doesn't fail the (already terminal) workflow, it just defers to the * next self-heal attempt. */ export declare function resolveFinalizerRegistration(internals: EngineInternals, type: string, revision: string | undefined): Promise;