import { ChainTracker, HttpClient, HttpClientRequestOptions, HttpClientResponse, WhatsOnChainConfig } from '@bsv/sdk'; type LocalWhatsOnChainConfig = WhatsOnChainConfig & { requestTimeoutMsecs?: number; }; /** * Represents a chain tracker based on What's On Chain . */ export default class SdkWhatsOnChain implements ChainTracker { readonly network: string; readonly apiKey: string; protected readonly URL: string; protected readonly httpClient: HttpClient; protected readonly requestTimeoutMsecs: number; /** * Constructs an instance of the WhatsOnChain ChainTracker. * `tstn` and `regtest` have no WhatsOnChain service, so every request made for them is refused. * * @param {'main' | 'test' | 'stn' | 'ttn' | 'tstn' | 'regtest'} network - The BSV network to use when calling the WhatsOnChain API. * @param {WhatsOnChainConfig} config - Configuration options for the WhatsOnChain ChainTracker. */ constructor(network?: 'main' | 'test' | 'stn' | 'ttn' | 'tstn' | 'regtest', config?: LocalWhatsOnChainConfig); /** * False for networks with no WhatsOnChain service (tstn, regtest). Every request made by * such an instance is refused. */ get isAvailable(): boolean; protected request(url: string, options: HttpClientRequestOptions): Promise>; isValidRootForHeight(root: string, height: number): Promise; currentHeight(): Promise; protected getHttpHeaders(): Record; } export {}; //# sourceMappingURL=SdkWhatsOnChain.d.ts.map