import type { Page as PlaywrightPage } from "playwright"; import { Page } from "../page/page.js"; import { PageSpec } from "../specs/page/page-spec.js"; import type { SectionFilter, PageSpecReaderOptions } from "../parser/page-spec-reader.js"; import type { ValidationListener } from "../validation/validation-result.js"; import { LayoutReport } from "../reports/layout-report.js"; export interface CheckLayoutOptions { sectionFilter?: SectionFilter; properties?: Record; variables?: Record; screenshot?: Buffer; listener?: ValidationListener; } export declare class Galen { /** * Check layout of a Playwright page against a .gspec file. */ static checkLayout(page: PlaywrightPage, specPath: string, options?: CheckLayoutOptions): Promise; /** * Check layout of a Playwright page against a PageSpec object. */ static checkLayout(page: PlaywrightPage, spec: PageSpec, options?: CheckLayoutOptions): Promise; /** * Check layout using the Page abstraction against a .gspec file. */ static checkLayout(page: Page, specPath: string, options?: CheckLayoutOptions): Promise; /** * Check layout using the Page abstraction against a PageSpec. */ static checkLayout(page: Page, spec: PageSpec, options?: CheckLayoutOptions): Promise; /** * Parse a .gspec file into a PageSpec without running validation. */ static readSpec(specPath: string, options?: PageSpecReaderOptions): PageSpec; /** * Parse .gspec text inline. */ static readSpecFromText(text: string, options?: PageSpecReaderOptions): PageSpec; } //# sourceMappingURL=galen.d.ts.map