import type { Dispatcher } from 'undici'; import type { BrowserOptions, TrackerRenderer } from './browser.ts'; /** HTTP transport options with headless browser handling enabled by default. */ export interface ClientOptions { timeoutMs?: number; cacheTtlMs?: number; minRequestIntervalMs?: number; retries?: number; dispatcher?: Dispatcher; /** Customize the default headless browser, or disable it with false. */ browser?: BrowserOptions | false; /** Replace the default renderer; cannot accompany browser settings. */ renderer?: TrackerRenderer; } /** Cached public data and the time it was actually retrieved. */ export interface RetrievedData { payload: unknown; fetchedAt: string; } /** Own bounded HTTP requests, request coalescing, caching and renderer cleanup. */ export declare class TrackerTransport { #private; constructor(options?: ClientOptions); /** Share successful requests and serialize explicit upstream calls. */ read(url: string, profileUrl: string, profileApiUrl: string): Promise; /** Prevent new requests, drain pending work and release browser resources. */ close(): Promise; }