///
import { Target } from "./createTarget";
import { EmulatorOptions } from "../runner/parseConfig";
declare type Unsubscriber = () => void;
export declare type ChromeCookie = {
name: string;
value: string;
url?: string;
domain?: string;
path?: string;
secure?: boolean;
httpOnly?: boolean;
sameSite?: "Strict" | "Lax" | "Extended" | "None";
expires?: number;
};
export interface ICDPClient {
_ws: {
readyState: 1 | 2 | 3;
};
close: () => Promise;
Browser: {
close: () => Promise;
};
Network: {
enable: () => Promise;
setCookies: (arg: {
cookies: ChromeCookie[];
}) => Promise;
getCookies: (arg?: {
urls?: string[];
}) => Promise<{
cookies: ChromeCookie[];
}>;
};
Page: {
enable: () => Promise;
loadEventFired: (fn?: () => void) => (() => void);
domContentEventFired: (fn?: () => void) => (() => void);
navigate: (options: {
url: string;
}) => Promise;
addScriptToEvaluateOnNewDocument: (arg0: {
source: string;
}) => Promise