/**
 * 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 * as traceV3 from './versions/traceV3';
import type * as traceV4 from './versions/traceV4';
import type * as traceV5 from './versions/traceV5';
import type * as traceV6 from './versions/traceV6';
import type * as traceV7 from './versions/traceV7';
import type * as traceV8 from './versions/traceV8';
import type { ActionEntry, ContextEntry } from './entries';
import type { SnapshotStorage } from './snapshotStorage';
export declare class TraceVersionError extends Error {
    constructor(message: string);
}
export declare class TraceModernizer {
    private _contextEntry;
    private _snapshotStorage;
    private _actionMap;
    private _version;
    private _pageEntries;
    private _jsHandles;
    private _consoleObjects;
    constructor(contextEntry: ContextEntry, snapshotStorage: SnapshotStorage);
    appendTrace(trace: string): void;
    actions(): ActionEntry[];
    private _pageEntry;
    private _appendEvent;
    private _innerAppendEvent;
    private _processedContextCreatedEvent;
    private _modernize;
    _modernize_0_to_1(events: any[]): any[];
    _modernize_1_to_2(events: any[]): any[];
    _modernize_2_to_3(events: any[]): any[];
    _modernize_3_to_4(events: traceV3.TraceEvent[]): traceV4.TraceEvent[];
    _modernize_event_3_to_4(event: traceV3.TraceEvent): traceV4.TraceEvent | null;
    _modernize_4_to_5(events: traceV4.TraceEvent[]): traceV5.TraceEvent[];
    _modernize_event_4_to_5(event: traceV4.TraceEvent): traceV5.TraceEvent | null;
    _modernize_5_to_6(events: traceV5.TraceEvent[]): traceV6.TraceEvent[];
    _modernize_6_to_7(events: traceV6.TraceEvent[]): traceV7.TraceEvent[];
    _modernize_7_to_8(events: traceV7.TraceEvent[]): traceV8.TraceEvent[];
}
//# sourceMappingURL=traceModernizer.d.ts.map