/** * Failure classifier for the worker retry router. * * Distinguishes transient failures (retry with backoff) from deterministic * failures (immediate poison — no further LLM budget spent). * * Priority: * 1. Explicit typed errors (TransientError / DeterministicError) — authoritative. * 2. Message heuristics — cover unwrapped errors from providers / stages. * 3. Default: transient (conservative — retry rather than silently drop). */ export type FailureKind = 'transient' | 'deterministic'; export declare function classifyError(err: unknown): FailureKind;