import type { WorkflowState } from '../types.ts'; import type { EngineInternals } from './internals.ts'; /** * The timestamp at which `state` becomes eligible for retention-driven * purge, or `null` when it is non-terminal, has no applicable retention * window, or (WFT-19 review round 2) its own pinned revision's retention * policy cannot be resolved on this process right now — an unresolvable pin * is NOT purge-eligible under the engine default; it is re-examined on a * later sweep once the pin becomes resolvable, rather than risking an * irreversible early purge against a shorter policy than the run's own. * Falls back to the resolved dynamic definition's own retention policy for a * `registerSource()`-registered type (see `resolveRetentionPolicyForState()`), * then the engine-wide default for any other type — mirroring `retention.ts`'s * `resolveWorkflowTypeRetention`. */ export declare function getWorkflowRetentionDeadline(internals: EngineInternals, state: WorkflowState): Promise;