import { CdpHeaderEntry, CdpHeaders, CdpQuad, Point, Quad, RemoteExpression } from './types.js';
export declare function asyncRegexpReplace(str: string, regexp: RegExp, replacer: (m: RegExpExecArray) => string | Promise<string>): Promise<string>;
export declare function rectToQuad(rect: DOMRect): Quad;
export declare function fromCdpQuad(quad: CdpQuad): Quad;
export declare function computeQuadArea(quad: Quad): number;
export declare function quadCenterPoint(quad: Quad): Point;
export declare function arePointsEqual(a: Point, b: Point): boolean;
export declare function findVisibleQuad(quads: Quad[], viewportWidth: number, viewportHeight: number): Quad | null;
export declare function clamp(number: number, min: number, max: number): number;
export declare function convertHeadersToEntries(headers: CdpHeaders | CdpHeaderEntry[]): CdpHeaderEntry[];
export declare function convertHeadersToObject(headers: CdpHeaders | CdpHeaderEntry[]): CdpHeaders;
export declare function evaluationString(pageFn: RemoteExpression, ...args: unknown[]): string;
//# sourceMappingURL=cdp-util.d.ts.map