import { Environment } from "./environment"; import { KinAccount } from "./kinAccount"; import { AccountData, Balance, OnPaymentListener, PaymentListener, RawTransaction, Transaction } from "./blockchain/horizonModels"; import { Address, TransactionId } from "./types"; export declare class KinClient { private readonly _environment; private readonly _server; private readonly _accountDataRetriever; private readonly _friendbotHandler; private readonly _blockchainInfoRetriever; private readonly _transactionRetriever; private readonly _blockchainListener; constructor(_environment: Environment); readonly environment: Environment; createKinAccount(params: CreateKinAccountParams): KinAccount; getMinimumFee(): Promise; getAccountBalance(address: Address): Promise; isAccountExisting(address: Address): Promise; getAccountData(address: Address): Promise; getTransactionData(transactionId: TransactionId): Promise; getRawTransactionData(transactionId: TransactionId): Promise; getTransactionHistory(params: TransactionHistoryParams): Promise; getRawTransactionHistory(params: TransactionHistoryParams): Promise; createPaymentListener(params: PaymentListenerParams): PaymentListener; friendbot(params: FriendBotParams): Promise; } export interface TransactionHistoryParams { address: Address; limit?: number; order?: "asc" | "desc"; cursor?: string; } export interface PaymentListenerParams { onPayment: OnPaymentListener; addresses: Address[]; } export interface CreateKinAccountParams { seed: string; appId?: string; channelSecretKeys?: string[]; } export interface FriendBotParams { address: Address; amount: number; }