@stellar/stellar-sdk
Version:
A library for working with the Stellar network, including communication with the Horizon and Soroban RPC servers.
12 lines (11 loc) • 587 B
TypeScript
import { AxiosRequestConfig, AxiosResponse } from 'feaxios';
import { CancelToken, HttpClient, HttpClientRequestConfig, HttpClientResponse } from './types';
export interface HttpResponse<T = any> extends AxiosResponse<T> {
}
export interface FetchClientConfig<T = any> extends AxiosRequestConfig {
adapter?: (config: HttpClientRequestConfig) => Promise<HttpClientResponse<T>>;
cancelToken?: CancelToken;
}
declare function createFetchClient(fetchConfig?: HttpClientRequestConfig): HttpClient;
export declare const fetchClient: HttpClient;
export { createFetchClient as create };