import { r as SummaryStrings } from "./summary-D8UEQXYr.js"; import { n as Format } from "./format-Dq02z5ZL.js"; import { CSSProperties, ReactNode } from "react"; //#region src/core/strings-trace-fold.d.ts type TraceFoldStrings = Pick; //#endregion //#region src/charts/trace-fold/geometry.d.ts interface Span { label: string; start: number; duration: number; depth: number; parent?: number | undefined; critical?: boolean | undefined; } interface SpanRect { x: number; y: number; width: number; height: number; label: string; depth: number; critical: boolean; share: number; duration: number; } declare function traceFoldGeometry(opts: { data: readonly Span[]; width: number; height: number; rowGap: number; }): { rects: SpanRect[]; total: number; criticalCount: number; longest: { label: string; duration: number; critical: boolean; } | null; }; //#endregion //#region src/charts/trace-fold/index.d.ts type TraceFoldDatum = Span; interface TraceFoldProps { data: readonly TraceFoldDatum[]; /** `"none"` renders spans uniformly for a structure-only audit. */ emphasis?: "critical" | "none" | undefined; /** Width-gated in-rect labels. */ labels?: boolean | undefined; width?: number | undefined; height?: number | undefined; format?: Format | undefined; locale?: string | string[] | undefined; strings?: TraceFoldStrings | undefined; /** Minimum in-chart label size, in viewBox units. Geometry sizes labels from * the mark and floors them at 7; this raises that floor and moves the * reserved gutter with it. A label the box cannot seat at the raised floor * drops rather than shrinking back under it. */ labelSize?: number | undefined; title?: string | undefined; summary?: string | false | undefined; id?: string | undefined; className?: string | undefined; style?: CSSProperties | undefined; children?: ReactNode | undefined; } /** Shared summary — span count, total, and the longest span + its path status. */ declare function traceFoldSummary(geo: ReturnType, strings: TraceFoldStrings, fmt: (n: number) => string): string; declare function TraceFold(props: TraceFoldProps): ReactNode; //#endregion export { traceFoldSummary as i, TraceFoldDatum as n, TraceFoldProps as r, TraceFold as t };