export declare const RESOURCE_ENTRY_WAIT_MS = 5000; export interface ResourceTimingWatch { /** * Calls `onEntry` once with the entry of this request, then disconnects. Disconnects without calling it * when no entry arrives in `RESOURCE_ENTRY_WAIT_MS`. `endedAt` is when the request finished on the * `now()` clock, and entries that start after it are ignored. */ take(endedAt: number, onEntry: (entry: PerformanceResourceTiming) => void): void; stop(): void; } /** * Watches for the Resource Timing entry of a request to `url` that is about to start. * * It uses an observer rather than `performance.getEntriesByName` because a page that fills the resource * timing buffer (250 entries by default) stops adding entries to it, while observers still receive them. * Returns undefined when the browser cannot observe resource entries. */ export declare const watchResourceTiming: (url: string) => ResourceTimingWatch | undefined;