import * as Types from '../types/types.js'; export declare function reset(): void; export declare function handleEvent(event: Types.Events.Event): void; export declare function finalize(): Promise; export interface MetaHandlerData { traceIsGeneric: boolean; traceBounds: Types.Timing.TraceWindowMicro; browserProcessId: Types.Events.ProcessID; processNames: Map; browserThreadId: Types.Events.ThreadID; gpuProcessId: Types.Events.ProcessID; navigationsByFrameId: Map; navigationsByNavigationId: Map; /** * The user-visible URL displayed to users in the address bar. * This captures: * - resolving all redirects * - history API pushState * * Given no redirects or history API usages, this is just the navigation event's documentLoaderURL. * * Note: empty string special case denotes the duration of the trace between the start * and the first navigation. If there is no history API navigation during this time, * there will be no value for empty string. **/ finalDisplayUrlByNavigationId: Map; threadsInProcess: Map>; mainFrameId: string; mainFrameURL: string; /** * A frame can have multiple renderer processes, at the same time, * a renderer process can have multiple URLs. This map tracks the * processes active on a given frame, with the time window in which * they were active. Because a renderer process might have multiple * URLs, each process in each frame has an array of windows, with an * entry for each URL it had. */ rendererProcessesByFrame: FrameProcessData; topLevelRendererIds: Set; frameByProcessId: Map>; mainFrameNavigations: Types.Events.NavigationStart[]; gpuThreadId?: Types.Events.ThreadID; viewportRect?: { x: number; y: number; width: number; height: number; }; devicePixelRatio?: number; } export type FrameProcessData = Map>>; export declare function data(): MetaHandlerData;