/** * All custom AI errors extend their matching HTTP-status error class from datasource-toolkit. * This allows the agent's error middleware to map them to their natural HTTP status codes. */ import { BadRequestError, ForbiddenError, InternalServerError, NotFoundError, TooManyRequestsError, UnauthorizedError, UnprocessableError } from '@forestadmin/datasource-toolkit'; export declare class AIBadRequestError extends BadRequestError { constructor(message: string); } export declare class AIModelNotSupportedError extends AIBadRequestError { constructor(model: string); } export declare class AIModelNotAllowlistedError extends AIBadRequestError { constructor(model: string); } export declare class AINotFoundError extends NotFoundError { constructor(message: string); } export declare class AIProviderError extends UnprocessableError { readonly provider: string; readonly cause?: Error; constructor(provider: string, options?: { cause?: Error; }); } export declare class AIProviderUnavailableError extends InternalServerError { readonly provider: string; readonly providerStatusCode: number; readonly cause?: Error; constructor(provider: string, options: { cause?: Error; status: number; }); } export declare class AITooManyRequestsError extends TooManyRequestsError { readonly provider: string; readonly cause?: Error; constructor(provider: string, options?: { cause?: Error; }); } export declare class AIUnauthorizedError extends UnauthorizedError { readonly provider: string; readonly cause?: Error; constructor(provider: string, options?: { cause?: Error; }); } export declare class AIForbiddenError extends ForbiddenError { readonly provider: string; readonly cause?: Error; constructor(provider: string, options?: { cause?: Error; }); } export declare class AINotConfiguredError extends UnprocessableError { constructor(message?: string); } export declare class AIToolUnprocessableError extends UnprocessableError { constructor(message: string); } export declare class AIToolNotFoundError extends AINotFoundError { constructor(message: string); } export declare class McpError extends UnprocessableError { constructor(message: string); } export declare class McpConnectionError extends McpError { constructor(message: string); } export declare class McpLoadTimeoutError extends McpError { constructor(serverName: string, timeoutMs: number); } export declare class McpConflictError extends McpError { constructor(entityName: string); } export declare class McpConfigError extends McpError { constructor(message: string); } //# sourceMappingURL=errors.d.ts.map