import { Coin } from "@cosmjs/amino"; import { EncodeObject } from "@cosmjs/proto-signing"; import { Account as CosmosAccount, DeliverTxResponse } from "@cosmjs/stargate"; import { Account } from "../types/account"; import { Amount } from "../types/amount"; import { ResponsePage } from "../types/apiPage"; import { Domain } from "../types/domain"; import { Escrow, EscrowObject } from "../types/escrow"; import { Fees } from "../types/fees"; import { Reward } from "../types/rewardsResponse"; import { Settings } from "../types/settings"; import { StarnameInfo } from "../types/starnameInfo"; import { TokenLike } from "../types/tokenLike"; import { Transaction } from "../types/transaction"; import { Unbonding } from "../types/unbondingsResponse"; import { Delegation } from "../types/userDelegationsResponse"; import { Task } from "./task"; import { BondStatus } from "./types/stargate/bondStatus"; import { StargateBaseTx } from "./types/stargate/searchTxResponse"; import { StargateValidator } from "./types/stargate/validatorResponse"; import { Asset } from "../types/asset"; export declare class StarnameClient { private stargateClient; private settings; private tokens; private assets; private mainAsset; private fees; private broker; private api; private chainId; static createOffline(): StarnameClient; static createConnected(rpcUrl: string, apiUrl: string, validatorsInfoUrl: string, chainTokens: ReadonlyArray, mainAsset: Asset, broker?: string, assets?: ReadonlyArray): Promise; private loadSettings; private loadFees; /** * Get the cosmos account for associated with [address] * @param address */ getAccount: (address: string) => Promise; getBalance(address: string): Task>; resourceAccounts: (address: string) => Task>; resolveStarname: (starname: string) => Task; getDomainInfo: (name: string) => Task; getAccountsInDomain: (domain: Domain, pageSize: number, pageNumber: number) => Task>; private urlWithQueries; getAccountsWithResource: (uri: string, resource: string) => Task>; getAccountsWithOwner: (owner: string, pageSize?: number, pageNumber?: number) => Task>; getValidator(address: string): Task; getValidators(bondStatus?: BondStatus): Task>; getUserDelegations(delegatorAddress: string): Task>; getUnbondings(address: string): Task>; getUserRewards(address: string): Task>; getEscrowWithId(escrowId: string): Task; getEscrows(seller?: string, state?: "open" | "expired", starname?: string, pageStart?: number, pageLength?: number): Task>; escrowObjectToStarname(object: EscrowObject): string; private static convertMessageType; broadcastTx: (signedTx: Uint8Array) => Promise; getTransactions: (address: string) => Task>>; private getTransactionsWithQuery; private convertResponseTxsToStargateTxs; toInternalCoins(coins: ReadonlyArray): ReadonlyArray; toInternalTransaction(client: StarnameClient, address: string): (baseTx: StargateBaseTx) => Promise; getChainId(): string; isValidStarname(value: string): boolean; getValidatorLogo(baseUrl: string, identity: string): Task<{ identity: string; url?: string; }>; /** * Query a starname from the blockchain. * @param {string} starname - The starname you want to lookup * * On success a `StarnameInfo` object is returned with all the relevant * information associated with `starname` * * On failure, if the domain was not found a `FetchError` is thrown * with code `3`. */ getStarnameInfo(starname: string): Task; getDefaultAssetURI(): string; getBroker(): string; getAssets: () => ReadonlyArray; getTokenBySymbol: (symbol: string) => TokenLike | undefined; getToken: (subunitName: string) => TokenLike | undefined; getFees: () => Fees; getSettings: () => Settings; getAssetByUri: (uri: string) => Asset | undefined; getAssetByTicker: (ticker: string) => Asset | undefined; getMainToken(): TokenLike; }