/** * Shared provider-error helpers. * * Consolidated from three verbatim copies in lm-studio-helpers.ts, * llama-cpp.ts, and ollama.ts into a single definition. */ import type { ProviderError } from '../types/errors.js'; /** * Extract an HTTP status code from an error object. * Checks `.status` before `.statusCode` to preserve provider-error convention. */ export declare function getErrorStatus(err: unknown): number | undefined; /** * Wrap an error into a ProviderError, attaching the HTTP status if present. */ export declare function normalizeProviderError(err: unknown, provider: string, operation: string, phase?: string): ProviderError; //# sourceMappingURL=provider-error.d.ts.map