/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */
/// <amd-module name="@angular/compiler-cli/src/ngtsc/perf/src/tracking" />
import * as ts from 'typescript';
import { PerfRecorder } from './api';
export declare class PerfTracker implements PerfRecorder {
    private zeroTime;
    private nextSpanId;
    private log;
    readonly enabled = true;
    private constructor();
    static zeroedToNow(): PerfTracker;
    mark(name: string, node?: ts.SourceFile | ts.Declaration, category?: string, detail?: string): void;
    start(name: string, node?: ts.SourceFile | ts.Declaration, category?: string, detail?: string): number;
    stop(span: number): void;
    private makeLogMessage;
    asJson(): unknown;
    serializeToFile(target: string, host: ts.CompilerHost): void;
}
export interface PerfLogEvent {
    name?: string;
    span?: number;
    file?: string;
    declaration?: string;
    type: PerfLogEventType;
    category?: string;
    detail?: string;
    stamp: number;
}
export declare enum PerfLogEventType {
    SPAN_OPEN = 0,
    SPAN_CLOSE = 1,
    MARK = 2
}
