import type { ConsoleMessage, JSHandle, Page } from 'playwright'; import type { Emitter } from '../testing/emitter.js'; import type { RunnerEvents } from '../types.js'; /** * A class that specializes in collecting and processing browser logs. */ export declare class BrowserLogs { protected readonly page: Page; /** * Path to the Lupa configuration file. */ configPath?: string; /** * When not set, all messages are suppressed, only errors are reported. */ verbose: boolean; /** * The list of prefixes to ignore messages containing. * @default ['[vite]'] */ ignorePrefix: string[]; /** * Callback to emit logs to the reporter */ emitter: Emitter; /** * Creates an instance of BrowserLogs. * * @param page - The Playwright page to capture logs from. */ constructor(page: Page, verbose: boolean | undefined, emitter: Emitter, configPath?: string); /** * Starts capturing browser logs. */ boot(): void; protected canShow(message: string, _type: string): boolean; protected handleConsoleMessage(message: ConsoleMessage): Promise; protected handlePageError(error: Error): Promise; protected processArguments(args: JSHandle[]): Promise; protected processArgument(arg: JSHandle): Promise; }