import { AxiosInstance, AxiosPromise, AxiosResponse } from "axios"; import { ApiGetRelayersResponse, ApiGetTransactionResponse, ApiGetUserTransactions, ApiTransactionResponse, SendTransactionRequest } from "./types"; export declare const poll: (fn: () => AxiosPromise, shouldContinuePolling: (result: AxiosResponse) => boolean, interval: number) => Promise; export declare class ApiClient { axiosClient: AxiosInstance; constructor(baseURL: string, authToken?: string); sendTransaction(data: SendTransactionRequest): Promise>; getTransaction(sidOrHash: string, chainId: number): Promise>; getUserTransactions(userId: string, unackOnly?: boolean): Promise>; acknowledgeTransaction(sidOrHash: string, acknowledge?: boolean): Promise>; getRelayers(chainId: number): Promise>; }