import { type GhApi } from './gh-api.mts'; import { type LogLimits } from './log-window.mts'; import { type WorkflowRetryRule } from './run-context-types.mts'; export interface RerunKnownTransientOptions { /** `owner/name`; inferred from the current checkout when omitted. */ repository?: string; runId: string; /** The caller's rule catalog. The engine has no built-in rules. */ rules: readonly WorkflowRetryRule[]; dryRun?: boolean; limits?: Partial; api?: GhApi; streamLog?: (path: string) => AsyncIterable; log?: (message: string) => void; } /** Process exit codes: a rerun was requested (or would be), or none was warranted. */ export declare const RERUN_REQUESTED = 0; export declare const NO_RERUN = 2; /** * Evaluates the injected rules for a failed workflow run and reruns it only when one rule asks * for a rerun. Only job names and the decision are logged; log text is never printed. */ export declare function rerunKnownTransient({ repository: requestedRepository, runId, rules, dryRun, limits, api, streamLog, log, }: RerunKnownTransientOptions): Promise;