// import type * as SDK from '../../../core/sdk/sdk.js'; import type * as Protocol from '../../../generated/protocol.js'; import * as Types from '../types/types.js'; import type { FinalizeOptions, HandlerName } from './types.js'; export interface ScriptsData { /** Note: this is only populated when the "Enhanced Traces" feature is enabled. */ scripts: Script[]; } export interface Script { isolate: string; scriptId: Protocol.Runtime.ScriptId; frame: string; ts: Types.Timing.Micro; inline: boolean; url?: string; sourceUrl?: string; content?: string; /** * Note: this is the literal text given as the sourceMappingURL value. It has not been resolved relative to the script url. * Since M138, data urls are never set here. */ sourceMapUrl?: string; /** If true, the source map url was a data URL, so it got removed from the trace event. */ sourceMapUrlElided?: boolean; sourceMap?: any; request?: Types.Events.SyntheticNetworkRequest; /** Lazily generated - use getScriptGeneratedSizes to access. */ sizes?: GeneratedFileSizes; } type GeneratedFileSizes = { errorMessage: string; } | { files: Record; unmappedBytes: number; totalBytes: number; }; export declare function deps(): HandlerName[]; export declare function reset(): void; export declare function handleEvent(event: Types.Events.Event): void; export declare function getScriptGeneratedSizes(script: Script): GeneratedFileSizes | null; export declare function finalize(options: FinalizeOptions): Promise; export declare function data(): ScriptsData; export {};