import type * as ProtocolProxyApi from '../../generated/protocol-proxy-api.js'; import type * as Protocol from '../../generated/protocol.js'; import { type Target } from './Target.js'; import { SDKModel } from './SDKModel.js'; export declare class PaintProfilerModel extends SDKModel { readonly layerTreeAgent: ProtocolProxyApi.LayerTreeApi; constructor(target: Target); loadSnapshotFromFragments(tiles: Protocol.LayerTree.PictureTile[]): Promise; loadSnapshot(encodedPicture: Protocol.binary): Promise; makeSnapshot(layerId: Protocol.LayerTree.LayerId): Promise; } export declare class PaintProfilerSnapshot { #private; constructor(paintProfilerModel: PaintProfilerModel, snapshotId: Protocol.LayerTree.SnapshotId); release(): void; addReference(): void; replay(scale?: number, fromStep?: number, toStep?: number): Promise; profile(clipRect: Protocol.DOM.Rect | null): Promise; commandLog(): Promise; } export declare class PaintProfilerLogItem { method: string; params: RawPaintProfilerLogItemParams | null; commandIndex: number; constructor(rawEntry: RawPaintProfilerLogItem, commandIndex: number); } export type RawPaintProfilerLogItemParamValue = string | { [key: string]: RawPaintProfilerLogItemParamValue; }; export type RawPaintProfilerLogItemParams = { [key: string]: RawPaintProfilerLogItemParamValue; }; export interface SnapshotWithRect { rect: Protocol.DOM.Rect; snapshot: PaintProfilerSnapshot; } export interface PictureFragment { x: number; y: number; picture: string; } export interface RawPaintProfilerLogItem { method: string; params: RawPaintProfilerLogItemParams | null; }