import type { RetrieveRunTracePageResponseBody, RetrieveRunTracePageSpan } from "../schemas/api.js"; export type RunTraceNode = RetrieveRunTracePageSpan & { children: RunTraceNode[]; }; type TracePage = Pick; /** * Rebuilds the span tree from `retrieveRunTracePage` pages, in page order. * * Like the unpaged trace, a span still in progress under a finished ancestor takes the * ancestor's outcome: cancelled if the ancestor was cancelled, or errored if the ancestor * failed the span's attempt. */ export declare function assembleRunTracePages(pages: TracePage[]): RunTraceNode[]; export {};