import type { Page } from "playwright";
import type { Assertion } from "../types/index.js";
export interface AssertionResult {
    assertion: Assertion;
    passed: boolean;
    actual: string;
    error?: string;
}
export interface AssertionEvaluationContext {
    consoleErrors?: string[];
}
export declare function evaluateAssertions(page: Page, assertions: Assertion[], context?: AssertionEvaluationContext): Promise<AssertionResult[]>;
/**
 * Parse a CLI-format assertion string into an Assertion object.
 *
 * Formats:
 *   "selector:.dashboard visible"
 *   "selector:.dashboard not-visible"
 *   "text:.header contains:Welcome"
 *   "text:.header equals:Welcome Home"
 *   "no-console-errors"
 *   "url:contains:/dashboard"
 *   "title:contains:My App"
 *   "count:.items eq:5"
 */
export declare function parseAssertionString(str: string): Assertion;
export declare function allAssertionsPassed(results: AssertionResult[]): boolean;
export declare function formatAssertionResults(results: AssertionResult[]): string;
//# sourceMappingURL=assertions.d.ts.map