import { Auth } from '../types/auth';

export type RequestOptions = RequestInit & {
    skipErrorHandler?: boolean;
};
export declare function createClient(auth: Auth, host?: string, onError?: (error: Error, errorData: object) => void, externalId?: string): {
    get<T = any>(url: string, options?: RequestOptions): Promise<T>;
    post<T = any>(url: string, body?: any, options?: RequestOptions): Promise<T>;
    delete<T = any>(url: string, body?: any, options?: RequestOptions): Promise<T>;
    patch<T = any>(url: string, body?: any, options?: RequestOptions): Promise<T>;
};
