/**
 * Copyright Zendesk, Inc.
 *
 * Use of this source code is governed under the Apache License, Version 2.0
 * found at http://www.apache.org/licenses/LICENSE-2.0.
 */
import type { ReportArguments, TimingSpan } from './types';
export interface Report {
    id: string;
    ttr: number | null;
    /** TTI will not be present in browsers that do not support tracking long tasks */
    tti: number | null;
    timeSpent: Record<string, number>;
    counts: Record<string, number>;
    durations: Record<string, number[]>;
    isFirstLoad: boolean;
    lastStage: string;
    includedStages: string[];
    hadError: boolean;
    handled: boolean;
    spans: TimingSpan[];
    loadingStagesDuration: number;
    flushReason: string;
}
export declare function generateReport<CustomMetadata extends Record<string, unknown>>({ actions, timingId, isFirstLoad, immediateSendReportStages, loadingStages, flushReason, measures, }: ReportArguments<CustomMetadata>): Report;
