import { Reporter, FullConfig, Suite, TestCase, TestResult, FullResult } from '@playwright/test/reporter';

/**
 * Shiplight Playwright Reporter
 *
 * Custom reporter that reads test-results.json from Playwright attachments,
 * maps stepIds back to YAML statements, and generates an HTML report
 * showing YAML-level step info instead of transpiled code.
 */

interface ShiplightReporterOptions {
    outputFolder?: string;
    open?: 'always' | 'never' | 'on-failure';
}
declare class ShiplightReporter implements Reporter {
    private outputFolder;
    private openMode;
    private collected;
    private config;
    private runStartTime;
    constructor(options?: ShiplightReporterOptions);
    onBegin(config: FullConfig, _suite: Suite): void;
    onTestEnd(test: TestCase, result: TestResult): void;
    onEnd(result: FullResult): Promise<void>;
    printsToStdio(): boolean;
    private buildReportTest;
}

export { ShiplightReporter as default };
