/** * Error handling utilities for the Google model provider. * * @internal This module is not part of the public API. */ /** * Recognized error types from Google GenAI API responses. * * This union type will expand as more error types are supported * (e.g., 'throttling', 'invalidRequest'). */ export type GoogleErrorType = 'contextOverflow' | 'throttling'; /** * Configuration for handling a specific error status. * If messagePatterns is provided, the error message must match one of the patterns. * If messagePatterns is not provided, the status alone triggers the error type. */ export interface ErrorStatusConfig { type: GoogleErrorType; messagePatterns?: Set; } /** * Mapping of Google GenAI API error statuses to error handling configuration. * Maps status codes to either direct error types or message-pattern-based detection. */ export declare const ERROR_STATUS_MAP: Record; /** * Classifies a Google GenAI API error based on status and message patterns. * Returns the error type if recognized, undefined otherwise. * * @param error - The error to classify * @returns The error type if recognized, undefined otherwise * * @internal */ export declare function classifyGoogleError(error: Error): GoogleErrorType | undefined; //# sourceMappingURL=errors.d.ts.map