/** * Classifies an error thrown by a scheduled job (LLM/agent call) so the * JobRunner can decide whether to retry and whether to apply a global * rate-limit cooldown. Unknown errors default to non-retryable to avoid * wasting retries on deterministic failures (bad definition, missing doc). */ interface JobErrorClassification { retryable: boolean; rateLimited: boolean; /** From a Retry-After header when present (ms). */ retryAfterMs?: number; } declare function classifyJobError(error: unknown): JobErrorClassification; export { type JobErrorClassification, classifyJobError };