import { Operation, Server } from "@digitalbits-blockchain/xdb-digitalbits-sdk"; import { Account, AccountDetails, Collection, CollectionParams, Offer, Payment, Trade, WatcherParams, WatcherResponse } from "../types"; export interface DataProviderParams { serverUrl: string; accountOrKey: Account | string; networkPassphrase: string; metadata?: { allowHttp?: boolean; appName?: string; appVersion?: string; }; } export declare class DataProvider { private accountKey; private serverUrl; private server; private networkPassphrase; private _watcherTimeouts; private effectStreamEnder?; private callbacks; private errorHandlers; constructor(params: DataProviderParams); isValidKey(): boolean; getAccountKey(): string; getServer(): Server; isAccountFunded(): Promise; fetchOpenOffers(params?: CollectionParams): Promise>; fetchTrades(params?: CollectionParams): Promise>; fetchPayments(params?: CollectionParams): Promise>; fetchAccountDetails(): Promise; watchAccountDetails(params: WatcherParams): WatcherResponse; watchPayments(params: WatcherParams): WatcherResponse; getStripAndMergeAccountTransaction(destinationKey: string): Promise, Operation[]>>; private stopWatchAccountDetails; private stopWatchPayments; private _processOpenOffers; private _processTrades; private _processPayments; private _startEffectWatcher; }