import { CallBuilder } from "./call_builder";
import { ServerApi } from "./server_api";
/**
* Creates a new {@link EffectCallBuilder} pointed to server defined by serverUrl.
* Do not create this object directly, use {@link Horizon.Server#effects}.
*
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/effects|All Effects}
*
* @augments CallBuilder
* @private
* @class
* @param {string} serverUrl Horizon server URL.
*/
export declare class EffectCallBuilder extends CallBuilder<ServerApi.CollectionPage<ServerApi.EffectRecord>> {
constructor(serverUrl: URI);
/**
* This endpoint represents all effects that changed a given account. It will return relevant effects from the creation of the account to the current ledger.
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/get-effects-by-account-id|Effects for Account}
* @param {string} accountId For example: `GDGQVOKHW4VEJRU2TETD6DBRKEO5ERCNF353LW5WBFW3JJWQ2BRQ6KDD`
* @returns {EffectCallBuilder} this EffectCallBuilder instance
*/
forAccount(accountId: string): this;
/**
* Effects are the specific ways that the ledger was changed by any operation.
*
* This endpoint represents all effects that occurred in the given ledger.
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-ledgers-effects|Effects for Ledger}
* @param {number|string} sequence Ledger sequence
* @returns {EffectCallBuilder} this EffectCallBuilder instance
*/
forLedger(sequence: number | string): this;
/**
* This endpoint represents all effects that occurred as a result of a given transaction.
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-a-transactions-effects|Effects for Transaction}
* @param {string} transactionId Transaction ID
* @returns {EffectCallBuilder} this EffectCallBuilder instance
*/
forTransaction(transactionId: string): this;
/**
* This endpoint represents all effects that occurred as a result of a given operation.
* @see {@link https://developers.stellar.org/docs/data/horizon/api-reference/resources/retrieve-an-operations-effects|Effects for Operation}
* @param {number} operationId Operation ID
* @returns {EffectCallBuilder} this EffectCallBuilder instance
*/
forOperation(operationId: string): this;
/**
* This endpoint represents all effects involving a particular liquidity pool.
*
* @param {string} poolId liquidity pool ID
* @returns {EffectCallBuilder} this EffectCallBuilder instance
*/
forLiquidityPool(poolId: string): this;
}
Source