import type { HTMLElement } from "linkedom";
import type { ElementHandle, ImageFormat } from "puppeteer-core";
import type { Transport } from "./tab-protocol";
declare global {
    interface Element extends HTMLElement {
    }
    function getComputedStyle(element: Element): Record<string, unknown>;
    var innerWidth: number;
    var innerHeight: number;
    var document: {
        elementFromPoint(x: number, y: number): Element | null;
    };
}
interface ScreenshotOptions {
    selector?: string;
    fullPage?: boolean;
    save?: string;
    silent?: boolean;
}
export interface InflightOp {
    label: string;
    startedAt: number;
}
/** Human-readable label for a screenshot op, used in op tracking + timeout errors. */
export declare function describeScreenshot(opts?: ScreenshotOptions): string;
/** Map an explicit save path's extension to a puppeteer capture format (default png). */
export declare function imageFormatForPath(filePath: string): ImageFormat;
/** Summarize still-running helpers (oldest first) so a cell timeout names what stalled. */
export declare function describeInflight(inflight: Map<number, InflightOp>): string;
export declare class WorkerCore {
    #private;
    constructor(transport: Transport);
    nextElementId(): number;
    cacheElement(id: number, handle: ElementHandle): void;
}
export {};
