/**
 * Copyright (c) Microsoft Corporation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import type { FullConfig, FullResult, Reporter, Suite } from '@playwright/test/reporter';
type MarkdownReporterOptions = {
    configDir: string;
    outputFile?: string;
};
declare class MarkdownReporter implements Reporter {
    private _options;
    private _fatalErrors;
    protected _config: FullConfig;
    private _suite;
    constructor(options: MarkdownReporterOptions);
    printsToStdio(): boolean;
    onBegin(config: FullConfig, suite: Suite): void;
    onError(error: TestError): void;
    onEnd(result: FullResult): Promise<void>;
    protected publishReport(report: string): Promise<void>;
    protected _incompleteRunWarning(): string | undefined;
    protected _generateSummary(): {
        didNotRun: number;
        skipped: number;
        expected: number;
        interrupted: TestCase[];
        unexpected: TestCase[];
        flaky: TestCase[];
    };
    private _printTestList;
}
declare class GHAMarkdownReporter extends MarkdownReporter {
    private octokit;
    private context;
    private core;
    publishReport(report: string): Promise<void>;
    private collapsePreviousComments;
    private _magicComment;
    private _workflowRunName;
    private addNewReportComment;
    private pullRequestFromMetadata;
}
export default GHAMarkdownReporter;
//# sourceMappingURL=ghaMarkdownReporter.d.ts.map