Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
export interface Interaction {
|
|
_latency: number;
|
|
id: number;
|
|
entries: PerformanceEventTiming[];
|
|
}
|
|
/**
|
|
*
|
|
*/
|
|
export declare class InteractionManager {
|
|
/**
|
|
* A list of longest interactions on the page (by latency) sorted so the
|
|
* longest one is first. The list is at most MAX_INTERACTIONS_TO_CONSIDER
|
|
* long.
|
|
*/
|
|
_longestInteractionList: Interaction[];
|
|
/**
|
|
* A mapping of longest interactions by their interaction ID.
|
|
* This is used for faster lookup.
|
|
*/
|
|
_longestInteractionMap: Map<number, Interaction>;
|
|
_onBeforeProcessingEntry?: (entry: PerformanceEventTiming) => void;
|
|
_onAfterProcessingINPCandidate?: (interaction: Interaction) => void;
|
|
_resetInteractions(): void;
|
|
/**
|
|
* Returns the estimated p98 longest interaction based on the stored
|
|
* interaction candidates and the interaction count for the current page.
|
|
*/
|
|
_estimateP98LongestInteraction(): Interaction | undefined;
|
|
/**
|
|
* Takes a performance entry and adds it to the list of worst interactions
|
|
* if its duration is long enough to make it among the worst. If the
|
|
* entry is part of an existing interaction, it is merged and the latency
|
|
* and entries list is updated as needed.
|
|
*/
|
|
_processEntry(entry: PerformanceEventTiming): void;
|
|
}
|
|
//# sourceMappingURL=InteractionManager.d.ts.map
|