/** * Typed pipeline errors for failure classification. * * Throw TransientError for recoverable conditions (network failures, rate limits, * server-side 5xx) where retrying has a meaningful chance of success. This also * covers LLM JSON-output parse/validation failures (see 05-extract.ts) — LLM * output is stochastic, so one malformed response is not proof the next call * will fail too; those get retried up to the normal attempt cap before the * job is poisoned. * * Throw DeterministicError for conditions that will not self-heal (malformed * request/job payload, missing required input, unsupported job kind, 4xx auth) * where retrying wastes LLM budget. */ export declare class TransientError extends Error { readonly cause?: unknown | undefined; /** Milliseconds to wait before retrying, when the failure carried a * server-supplied `Retry-After` hint (HTTP 429/503) — see * src/providers/llm/retry-after.ts for the header parser LLM providers * use to populate this. `undefined` (the default, and every call site * that predates this field) means no such hint was available; * worker.ts falls back to its own exponential backoff in that case. */ readonly retryAfterMs?: number | undefined; readonly kind: "transient"; constructor(message: string, cause?: unknown | undefined, /** Milliseconds to wait before retrying, when the failure carried a * server-supplied `Retry-After` hint (HTTP 429/503) — see * src/providers/llm/retry-after.ts for the header parser LLM providers * use to populate this. `undefined` (the default, and every call site * that predates this field) means no such hint was available; * worker.ts falls back to its own exponential backoff in that case. */ retryAfterMs?: number | undefined); static is(err: unknown): err is TransientError; } export declare class DeterministicError extends Error { readonly cause?: unknown | undefined; readonly kind: "deterministic"; constructor(message: string, cause?: unknown | undefined); static is(err: unknown): err is DeterministicError; }