/**
 * 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 { CommonReporterOptions } from './base';
import type { ReportConfigureParams, ReportEndParams, ReporterV2 } from './reporterV2';
import type { HtmlReporterOptions as HtmlReporterConfigOptions } from '../../types/test';
import type * as api from '../../types/testReporter';
type HtmlReportOpenOption = NonNullable<HtmlReporterConfigOptions['open']>;
declare class HtmlReporter implements ReporterV2 {
    private config;
    private suite;
    private _options;
    private _outputFolder;
    private _attachmentsBaseURL;
    private _open;
    private _port;
    private _host;
    private _buildResult;
    private _topLevelErrors;
    private _reportConfigs;
    private _machines;
    constructor(options: HtmlReporterConfigOptions & CommonReporterOptions);
    version(): 'v2';
    printsToStdio(): boolean;
    onConfigure(config: api.FullConfig): void;
    onBegin(suite: api.Suite): void;
    _resolveOptions(): {
        outputFolder: string;
        open: HtmlReportOpenOption;
        attachmentsBaseURL: string;
        host: string | undefined;
        port: number | undefined;
    };
    _isSubdirectory(parentDir: string, dir: string): boolean;
    onError(error: api.TestError): void;
    onReportConfigure(params: ReportConfigureParams): void;
    onReportEnd(params: ReportEndParams): void;
    onEnd(result: api.FullResult): Promise<void>;
    onExit(): Promise<void>;
}
export declare function showHTMLReport(reportFolder: string | undefined, host?: string, port?: number, testId?: string): Promise<void>;
export default HtmlReporter;
//# sourceMappingURL=html.d.ts.map