import type { RunFetchEnv, WorkflowRetryRule } from './run-context-types.mts'; export interface DeriveRuleAttemptsOptions { priorCounts: readonly number[]; rules: readonly WorkflowRetryRule[]; runAttempt: number; workflowName: string; } /** * Replays the rules over each prior attempt in order and counts, per rerun rule, how many earlier * attempts that rule won. The result is each rule's next-occurrence count. A rule whose replay * evidence cannot be fetched, and every rule after it, drops out of the map so its shared attempt * applies; if the very first rule is unreadable the whole replay throws. */ export declare function deriveRuleAttempts(env: RunFetchEnv, { priorCounts, rules, runAttempt, workflowName }: DeriveRuleAttemptsOptions): Promise>;