import type { Middleware } from '@dynamic-labs/sdk-api-core';
import type { ErrorMapper } from '../../apiClient.types';
type CreateConvertToApiErrorMiddlewareOptions = {
    errorMappers?: ErrorMapper[];
};
/**
 * Creates middleware that converts HTTP error responses to APIError instances
 * and optionally applies custom error mappers to transform them into specific error types.
 *
 * @param options.errorMappers - Array of error mappers to apply to API errors
 * @returns A middleware function that handles error conversion and mapping
  * @notInstrumented
 */
export declare const createConvertToApiErrorMiddleware: ({ errorMappers, }: CreateConvertToApiErrorMiddlewareOptions) => Middleware;
export {};
//# sourceMappingURL=convertToApiErrorMiddleware.d.ts.map