import { ApiConfig, DeleteProps, GetProps, PatchProps, PostProps, PutProps } from './types';
export declare class ApiService {
    private readonly config?;
    private readonly client;
    constructor(config?: ApiConfig | undefined);
    private setupInterceptors;
    get<T>({ url, config }: GetProps): Promise<T>;
    post<R, B>({ url, body, config }: PostProps<B>): Promise<R>;
    put<R, B>({ url, body, config }: PutProps<B>): Promise<R>;
    patch<R, B>({ url, body, config }: PatchProps<B>): Promise<R>;
    delete<R>({ url, config }: DeleteProps): Promise<R>;
}
//# sourceMappingURL=api.d.ts.map