import { DOMState } from '../dom/views'; import { DOMHistoryElement } from '../dom/history_tree_processor'; /** * 表示浏览器标签页的信息 */ export interface TabInfo { pageId: number; url: string; title: string; } /** * 表示浏览器状态 */ export declare class BrowserState extends DOMState { url: string; title: string; tabs: TabInfo[]; screenshot?: string; pixelsAbove: number; pixelsBelow: number; browserErrors: string[]; constructor(params: Partial); } /** * 表示浏览器状态历史 */ export declare class BrowserStateHistory { url: string; title: string; tabs: TabInfo[]; interactedElement: (DOMHistoryElement | null)[]; screenshot?: string; constructor(init?: Partial); /** * 将浏览器状态历史转换为对象 */ toDict(): Record; } /** * 浏览器错误基类 */ export declare class BrowserError extends Error { constructor(message: string); } /** * URL不允许错误 */ export declare class URLNotAllowedError extends BrowserError { constructor(message: string); }