import { LightSpanRecord } from '@mastra/core/storage';
import { LinkComponent } from '../../../ds/types/link-component';
export type TraceDataPanelPlacement = 'traces-list' | 'trace-page';
export interface TraceDataPanelViewProps {
    traceId: string;
    /** Lightweight spans for the trace. Caller fetches via useTraceLightSpans. */
    spans: LightSpanRecord[] | undefined;
    isLoading?: boolean;
    onClose: () => void;
    onSpanSelect?: (spanId: string | undefined) => void;
    onEvaluateTrace?: () => void;
    /** When set, a "Save as Dataset Item" button appears; the consumer owns the dialog. */
    onSaveAsDatasetItem?: (args: {
        traceId: string;
        rootSpanId: string | undefined;
    }) => void;
    initialSpanId?: string | null;
    onPrevious?: () => void;
    onNext?: () => void;
    collapsed?: boolean;
    onCollapsedChange?: (collapsed: boolean) => void;
    placement: TraceDataPanelPlacement;
    timelineChartWidth?: 'wide' | 'default';
    /** When both are provided, renders an "Open trace page" button. */
    LinkComponent?: LinkComponent;
    traceHref?: string;
    /**
     * Span treated as the displayed root of the timeline. Required for branch
     * subtrees from `getBranch` where the anchor has a real parent that's outside
     * `spans`. When omitted, the span with no parent is used (trace case).
     */
    anchorSpanId?: string;
    /**
     * Whether to render the "Evaluating traces and saving them as dataset items is
     * available in Mastra Studio" info notice when neither `onEvaluateTrace` nor
     * `onSaveAsDatasetItem` is provided. Defaults to `true`. Pass `false` when this
     * panel is rendered inside Studio in a context that intentionally omits those
     * handlers (e.g. inline below an experiment result).
     */
    showUnavailableFeaturesMsg?: boolean;
}
export declare function TraceDataPanelView({ traceId, spans, isLoading, onClose, onSpanSelect, onEvaluateTrace, onSaveAsDatasetItem, initialSpanId, onPrevious, onNext, collapsed: controlledCollapsed, onCollapsedChange, placement, timelineChartWidth, LinkComponent, traceHref, anchorSpanId, showUnavailableFeaturesMsg, }: TraceDataPanelViewProps): import("react/jsx-runtime").JSX.Element;
