import type { ProfileAggregates, ProfilerError, ProfilerOperationName, RetainedOperation } from "../schema"; import type { RuntimeSnapshot } from "../runtime/types"; export interface NormalizedProfile { runId: string; operation: ProfilerOperationName; level: RuntimeSnapshot["level"]; /** Real elapsed time of the complete profiled Testplane operation. */ durationMs: number; timeline: RetainedOperation[]; aggregates: ProfileAggregates; errors: ProfilerError[]; truncation: RuntimeSnapshot["truncation"]; /** Sum of time measured inside span-start and span-end bookkeeping. */ overheadMs: number; clock: RuntimeSnapshot["clock"]; } export declare const aggregateProfile: (snapshot: RuntimeSnapshot, durationMs: number, operationName?: ProfilerOperationName) => NormalizedProfile; export declare function unionDuration(intervals: ReadonlyArray): number; export declare function operationUnionWithin(parent: RetainedOperation, operations: RetainedOperation[]): number;