import { type CSSProperties } from "react"; import type { TraceFrame } from "../types.js"; import type { CallTreeClassNames } from "./CallTree/types.js"; export type { CallTreeClassNames }; export interface CallTreeProps { /** Root frame of the trace. Renders the entire tree underneath. */ frame: TraceFrame; /** Optional click handler — invoked with the clicked frame. */ onSelect?: (frame: TraceFrame) => void; /** How many levels are expanded initially. Default: 2. */ defaultExpandedDepth?: number; /** Symbol shown alongside non-zero values. Default: "PLS". */ valueSymbol?: string; /** Hide the header (title + counts). */ hideHeader?: boolean; /** Hide the legend chips. */ hideLegend?: boolean; /** Per-slot class names for theming. */ classNames?: CallTreeClassNames; /** Inline style on the root element. */ style?: CSSProperties; /** className on the root element (in addition to classNames.root). */ className?: string; } /** * Headless call-tree renderer. Pass a normalized `TraceFrame` (from any SDK * loader); the component handles expand/collapse, click selection, and * inline detail panels. * * Theming: default colors are built in. Override via `classNames` for * slot-level targeting, or wrap the component and use CSS cascade. * * Self-contained: no external CSS framework required. Works inside a Tailwind * app, a vanilla app, or anywhere React runs. */ export declare function CallTree({ frame, onSelect, defaultExpandedDepth, valueSymbol, hideHeader, hideLegend, classNames, style, className, }: CallTreeProps): React.JSX.Element; //# sourceMappingURL=CallTree.d.ts.map