import type { Page } from 'playwright'; export type BrowserExpectation = { urlIncludes: string; } | { urlEquals: string; } | { role: string; name?: string | undefined; } | { label: string; } | { text: string; } | { noText: string; } | { selector: string; } | { elementVisible: string; } | { elementNotVisible: string; } | { selectorCount: { selector: string; equals: number; }; } | { noSelector: string; } | { noHorizontalOverflow: true; } | { noConsoleErrors: true; } | { screenshot: string; }; export type AssertionFailure = { classification: string; summary: string; details?: string; }; export declare function evaluateExpectation(page: Page, expectation: BrowserExpectation, consoleErrors: string[]): Promise; export declare function shouldCaptureScreenshot(expectations: BrowserExpectation[]): boolean;