import { ApiError } from './error.js';
import { b as RequestInterceptor, c as ErrorInterceptor, d as ResponseInterceptor, I as InterceptorType, e as RawResponseReader } from './fetch-B8-kP4X0.js';
import { gy as ResourcesInitConfig } from './api-CiWKv2Ad.js';
import './client.js';
import './types.js';

declare const OPEN_API_SCHEMA_VERSION = "7.10.3";
type SdkConfig = {};
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
declare class CommerceLayerClient {
    readonly openApiSchemaVersion = "7.10.3";
    protected static cl: CommerceLayerClient;
    static get(config?: CommerceLayerInitConfig): CommerceLayerClient;
    protected constructor(config: CommerceLayerInitConfig);
    get currentOrganization(): string;
    get currentAccessToken(): string;
    private get interceptors();
    private localConfig;
    config(config: CommerceLayerConfig): this;
    resources(sort?: boolean): readonly string[];
    isApiError(error: any): error is ApiError;
    addRequestInterceptor(onSuccess?: RequestInterceptor, onFailure?: ErrorInterceptor): number;
    addResponseInterceptor(onSuccess?: ResponseInterceptor, onFailure?: ErrorInterceptor): number;
    removeInterceptor(type: InterceptorType, _id?: number): void;
    removeInterceptors(): void;
    addRawResponseReader(options?: {
        headers: boolean;
    }): RawResponseReader;
    removeRawResponseReader(): void;
}
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;

export { CommerceLayer, CommerceLayerClient, type CommerceLayerConfig, type CommerceLayerInitConfig, OPEN_API_SCHEMA_VERSION, CommerceLayer as default };
