/** * Shared typed-fault mapping for {@link WorkflowRevisionUnavailableError} * (WFT-21) — extracted out of `schedule-faults.ts` so `fork-workflow.ts` * can reuse it instead of duplicating an equivalent check inline, which * would trip the repository's jscpd duplicate-code audit on two * near-identical fault-mapping functions. * * @module server/operations/revision-unavailable-fault */ import type { OperationFault } from '../operation-fault.ts'; /** * A commit lost its revision-availability fence (an explicit revision was * concurrently removed, or — for an eager type — does not exactly match * what this process has registered). A structured, typed check rather than * substring matching, since the message text varies by * `WorkflowRevisionUnavailableError.reason`. `undefined` when `error` is * not this error class, so the caller falls through to its own * message-based classification. */ export declare function mapRevisionUnavailableToFault(error: unknown): OperationFault | undefined;