/** * Shared provider-error classification utilities used by both neurolink.ts and * the ModelPool routing subsystem. * * Extracted here to avoid duplication and to ensure that typed error classes * (AuthenticationError, AuthorizationError, ModelAccessDeniedError) are * checked consistently in both code paths. */ /** * Detects whether an error object looks like a model-access-denied condition. * Matches LiteLLM "team not allowed" / "team can only access models=[...]" * plus typed-error name/code markers when the full typed class is not present. */ export declare function looksLikeModelAccessDenied(error: unknown): boolean; /** * Returns true when the error is definitively non-retryable: typed error * classes (auth, access-denied, invalid-model), non-retryable HTTP status * codes, or deterministic 400-class message patterns. * * NOTE: ContextBudgetExceededError is intentionally NOT non-retryable — * each provider has its own context window, so a budget rejection on one * provider does not preclude another provider accepting the same payload. */ export declare function isNonRetryableProviderError(error: unknown): boolean;