import type { InlineConfig } from 'vite'; import type { Page } from 'playwright'; import type { CoverageOptions } from './types.js'; import type { ExceptionsManager } from './exceptions_manager.js'; export declare class CoverageManager { #private; constructor(coverageConfig: boolean | CoverageOptions | undefined, globalExcludes?: string[]); /** * Checks if coverage reporting is enabled in the configuration. */ get isEnabled(): boolean; /** * Lazily creates and returns a unique temporary directory under the OS temporary directory. */ getTempDir(): string; /** * Configures Vite to enable dev and build sourcemaps for accurate coverage mapping. */ instrumentViteConfig(viteConfig: InlineConfig): Promise; /** * Starts JavaScript coverage on the page if running on Chromium. */ startCoverage(page: Page, browserName: string): Promise; /** * Stops JSCoverage, processes dynamic URLs and inline source maps, and writes * the V8-compatible coverage payload to a temporary JSON file. */ collectPageCoverage(page: Page, browserName: string): Promise; /** * Compiles the coverage reports using c8's programmatic Report API and enforces threshold limits. */ generateReport(exceptionsManager: ExceptionsManager): Promise; }