export type AssertOp = "text" | "contains" | "matches" | "count" | "exists" | "absent"; export interface AssertSpec { raw: string; op: AssertOp; selector: string; expected: string; } export interface AssertResult { raw: string; op: AssertOp; selector: string; expected: string; /** Observed value: the text, or the match count as a string. */ actual: string; found: boolean; outcome: "pass" | "fail"; /** Populated when the spec itself was malformed (e.g. bad regex, bad count). */ error?: string; } /** Parse one `--assert` expression. Throws with a clear message on malformed input. */ export declare function parseAssertSpec(raw: string): AssertSpec; /** * Build the page evaluator. Serialized into the page by Playwright, so helpers * are nested. Comparison logic that does not touch the DOM (count comparators, * regex) also runs in-page to keep it one round trip. */ export declare function buildAssertCheck(): (specs: AssertSpec[]) => AssertResult[]; //# sourceMappingURL=asserts.d.ts.map