import "isomorphic-fetch"; import { RadixError } from "../util/index"; import { Client } from "./_types"; import { ResultAsync } from "neverthrow"; import { TransactionBuildResponse } from "./open-api/api"; import { AccountEndpointApiFactory, ValidatorEndpointApiFactory, TransactionEndpointApiFactory, TokenEndpointApiFactory, GatewayEndpointApiFactory } from "./index"; import { AxiosResponse } from "axios"; export declare type ReturnOfAPICall = Name extends "transactionBuildPost" ? AxiosResponse : Awaited>; export declare type InputOfAPICall = Parameters[0]; export declare type ClientInterface = ReturnType & ReturnType & ReturnType & ReturnType & ReturnType; export declare type MethodName = keyof ClientInterface; export declare type Response = ReturnOfAPICall; declare const call: (client: ClientInterface) => (method: M, params: InputOfAPICall) => ResultAsync, RadixError>; export declare type OpenApiClientCall = ReturnType; export declare const openApiClient: Client<"open-api">; export {}; //# sourceMappingURL=open-api-client.d.ts.map