/**
 * 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 { TeleSuite } from './teleReceiver';
import type * as reporterTypes from '../../types/testReporter';
export type TeleSuiteUpdaterProgress = {
    total: number;
    passed: number;
    failed: number;
    skipped: number;
};
export type TeleSuiteUpdaterTestModel = {
    config: reporterTypes.FullConfig;
    rootSuite: reporterTypes.Suite;
    loadErrors: reporterTypes.TestError[];
    progress: TeleSuiteUpdaterProgress;
};
export type TeleSuiteUpdaterOptions = {
    onUpdate: (force?: boolean) => void;
    onError?: (error: reporterTypes.TestError) => void;
    pathSeparator: string;
};
export declare class TeleSuiteUpdater {
    rootSuite: TeleSuite | undefined;
    config: reporterTypes.FullConfig | undefined;
    readonly loadErrors: reporterTypes.TestError[];
    readonly progress: TeleSuiteUpdaterProgress;
    private _receiver;
    private _lastRunReceiver;
    private _lastRunTestCount;
    private _options;
    private _testResultsSnapshot;
    constructor(options: TeleSuiteUpdaterOptions);
    private _createReporter;
    processGlobalReport(report: any[]): void;
    processListReport(report: any[]): void;
    processTestReportEvent(message: any): void;
    private _handleOnError;
    asModel(): TeleSuiteUpdaterTestModel;
}
//# sourceMappingURL=teleSuiteUpdater.d.ts.map