/// /// import { Horizon } from "./horizon_api"; import { ServerApi } from "./server_api"; export interface EventSourceOptions { onmessage?: (value: T) => void; onerror?: (event: MessageEvent) => void; reconnectTimeout?: number; } export declare class CallBuilder> { protected url: uri.URI; filter: string[][]; protected originalSegments: string[]; constructor(serverUrl: uri.URI); call(): Promise; stream(options?: EventSourceOptions): () => void; cursor(cursor: string): this; limit(recordsNumber: number): this; order(direction: "asc" | "desc"): this; join(include: "transactions"): this; private checkFilter; private _requestFnForLink; private _parseRecord; private _sendNormalRequest; private _parseResponse; private _toCollectionPage; private _handleNetworkError; }