import * as common from '../common'; import { Connection } from '../common'; import { TransactionType } from './transaction-types'; import { Issue } from '../common/types'; declare type RecursiveData = { marker: string; results: Array; }; declare type Getter = (marker?: string, limit?: number) => Promise; declare function clamp(value: number, min: number, max: number): number; declare function getCSCBalance(connection: Connection, address: string, ledgerVersion?: number): Promise; declare function getRecursive(getter: Getter, limit?: number): Promise>; declare function renameCounterpartyToIssuer(obj: T & { counterparty?: string; issuer?: string; }): (T & { issuer?: string; }); declare type RequestBookOffersArgs = { taker_gets: Issue; taker_pays: Issue; }; declare function renameCounterpartyToIssuerInOrder(order: RequestBookOffersArgs): RequestBookOffersArgs & Partial<{ taker_gets: Issue & { issuer?: string; }; taker_pays: Issue & { issuer?: string; }; }>; declare function compareTransactions(first: TransactionType, second: TransactionType): number; declare function hasCompleteLedgerRange(connection: Connection, minLedgerVersion?: number, maxLedgerVersion?: number): Promise; declare function isPendingLedgerVersion(connection: Connection, maxLedgerVersion?: number): Promise; declare function ensureLedgerVersion(options: any): Promise; export { getCSCBalance, ensureLedgerVersion, compareTransactions, renameCounterpartyToIssuer, renameCounterpartyToIssuerInOrder, getRecursive, hasCompleteLedgerRange, isPendingLedgerVersion, clamp, common };