import { Client, ClientConfig, FullNodeConfig, IndexerConfig, EndlessSettings } from '../types/index.mjs'; import { Network } from '../utils/apiEndpoints.mjs'; import { EndlessApiType } from '../utils/const.mjs'; import '../types/indexer.mjs'; /** * This class holds the config information for the SDK client instance. * * @example * * const endlessConfig = new EndlessConfig({network:Network.TESTNET}) */ declare class EndlessConfig { /** * The Network that this SDK is associated with. Defaults to DEVNET */ readonly network: Network; /** * The client instance the SDK uses. Defaults to @endlesslab/endless-client */ readonly client: Client; /** * The optional hardcoded fullnode URL to send requests to instead of using the network */ readonly fullnode?: string; /** * The optional hardcoded prover service URL to send requests to instead of using the network */ readonly prover?: string; /** * The optional hardcoded indexer URL to send requests to instead of using the network */ readonly indexer?: string; readonly indexerV2?: string; /** * Optional client configurations */ readonly clientConfig?: ClientConfig; /** * Optional specific Fullnode configurations */ readonly fullnodeConfig?: FullNodeConfig; /** * Optional specific Indexer configurations */ readonly indexerConfig?: IndexerConfig; readonly maxExpHorizonSecs?: number; constructor(settings?: EndlessSettings); /** * Returns the URL endpoint to send the request to. * If a custom URL was provided in the config, that URL is returned. * If a custom URL was provided but not URL endpoints, an error is thrown. * Otherwise, the URL endpoint is derived from the network. * * @param apiType - The type of Endless API to get the URL for. * * @internal */ getRequestUrl(apiType: EndlessApiType): string; } export { EndlessConfig };