/** Base class for batch errors, each with a stable `code`. */ export declare class BatchError extends Error { /** Stable code, such as `BATCH_VALIDATION_ERROR`. */ readonly code: string; /** The underlying error. */ readonly cause?: unknown | undefined; constructor(message: string, /** Stable code, such as `BATCH_VALIDATION_ERROR`. */ code: string, /** The underlying error. */ cause?: unknown | undefined); } /** Raised when a batch request is invalid before anything is sent. */ export declare class BatchValidationError extends BatchError { constructor(message: string, cause?: unknown); } /** Raised when a batch provider fails. */ export declare class BatchProviderError extends BatchError { /** The provider. */ readonly provider?: string | undefined; constructor(message: string, /** The provider. */ provider?: string | undefined, cause?: unknown); } /** Raised when no provider, or no provider by the requested name, is registered. */ export declare class BatchProviderNotFoundError extends BatchProviderError { constructor(provider?: string); } /** Raised when a batch asks for something the provider does not support. */ export declare class BatchCapabilityError extends BatchProviderError { /** The unsupported option. */ readonly option: string; /** Always `BATCH_CAPABILITY_ERROR`. */ readonly code = "BATCH_CAPABILITY_ERROR"; constructor(provider: string, /** The unsupported option. */ option: string, detail?: string); } /** Raised when a provider's response does not have the shape the adapter expects. */ export declare class BatchProviderResponseError extends BatchProviderError { /** Always `BATCH_PROVIDER_RESPONSE_ERROR`. */ readonly code = "BATCH_PROVIDER_RESPONSE_ERROR"; constructor(provider: string, message: string, cause?: unknown); }