/**
 * Copyright Microsoft Corporation. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { iso as isoType } from '../../packages/playwright-core/lib/coreBundle';
import type { Locator, Frame, Page } from 'playwright-core';
import type { StackFrame } from '../../packages/protocol/src/channels';
import type { ActionTraceEvent } from '@trace/trace';
declare const TraceModel: any;
type TraceModel = InstanceType<typeof TraceModel>;
type SnapshotStorage = isoType.SnapshotStorage;
export type BoundingBox = Awaited<ReturnType<Locator['boundingBox']>>;
export declare function attachFrame(page: Page, frameId: string, url: string): Promise<Frame>;
export declare function detachFrame(page: Page, frameId: string): Promise<void>;
export declare function verifyViewport(page: Page, width: number, height: number): Promise<void>;
export declare function expectedSSLError(browserName: string, platform: string, channel: string | undefined): RegExp;
export declare function isBidiChannel(channel: string | undefined): boolean;
export declare function chromiumVersionLessThan(a: string, b: string): boolean;
export declare function suppressCertificateWarning(): void;
export declare function parseTraceRaw(file: string): Promise<{
    events: any[];
    resources: Map<string, Buffer>;
    actions: string[];
    actionObjects: ActionTraceEvent[];
    stacks: Map<string, StackFrame[]>;
}>;
export declare function parseTrace(file: string): Promise<{
    snapshots: SnapshotStorage;
    model: TraceModel;
}>;
export declare function parseHar(file: string): Promise<Map<string, Buffer>>;
export declare function waitForTestLog<T>(page: Page, prefix: string): Promise<T>;
export declare function rafraf(target: Page | Frame, count?: number): Promise<void>;
export declare function ensureSomeFrames(page: Page): Promise<void>;
export declare function roundBox(box: BoundingBox): BoundingBox;
export declare function unshift(snapshot: string): string;
export declare function stripAnsi(str: string): string;
export declare function inheritAndCleanEnv(env: NodeJS.ProcessEnv | undefined): NodeJS.ProcessEnv;
export {};
//# sourceMappingURL=utils.d.ts.map