import type { FullConfig, FullResult, Reporter, Suite, TestCase, TestError, TestResult, TestRun } from '@playwright/test/reporter'; type OpenMode = 'always' | 'never' | 'on-failure'; type ReporterMode = 'list' | 'test' | 'merge'; type ShardBalancing = { timingsFile: string; }; export default class FlakinessReporter implements Reporter { private _options; private _config?; private _rootSuite?; private _results; private _stdioEntries; private _unattributedErrors; private _cpuUtilization; private _ramUtilization; private _report?; private _attachments; private _outputFolder; private _result?; private _telemetryTimer?; private _preprocessCalled; private _shardPlan?; constructor(_options?: { flakinessProject?: string; title?: string; endpoint?: string; token?: string; outputFolder?: string; open?: OpenMode; collectBrowserVersions?: boolean; disableUpload?: boolean; shardBalancing?: ShardBalancing; _mode?: ReporterMode; }); private _sampleSystem; printsToStdio(): boolean; preprocess({ config, suite, testRun }: { config: FullConfig; suite: Suite; testRun: TestRun; }): Promise; onBegin(config: FullConfig, suite: Suite): void; onError(error: TestError): void; onTestBegin(test: TestCase): void; onStdOut(chunk: string | Buffer, test: TestCase | void, result: TestResult | void): void; onStdErr(chunk: string | Buffer, test: TestCase | void, result: TestResult | void): void; private _onStdio; onTestEnd(test: TestCase, result: TestResult): void; private _logShardOutcome; onEnd(result: FullResult): Promise; onExit(): Promise; } export {}; //# sourceMappingURL=playwright-test.d.ts.map