/** Pure, bounded flattening of Harness session-lineage traces. */ import type { SessionLineageTrace } from '@deepseek-ai/dsh-session-query'; import type { LineageRow } from './model.ts'; /** Bounds that keep a lineage tree inside an overlay-sized data budget. */ export interface LineageBounds { /** Closest known ancestors to retain. */ readonly ancestors: number; /** Descendant generations to retain below the target. */ readonly depth: number; /** Descendant session rows to retain across the complete DFS. */ readonly nodes: number; } /** The bounded lineage budget used when a caller supplies no override. */ export declare const DEFAULT_LINEAGE_BOUNDS: LineageBounds; /** * Flatten a lineage trace into display order under explicit bounds. * * Ancestors arrive immediate-parent first and are reversed into root-to-target * order. Descendants use stable DFS pre-order, matching Harness's child order. * Pruned markers report exact omitted counts rather than making a bounded tree * look complete. * @param trace - the complete known trace from Harness. * @param bound - the presentation budget. * @returns bounded rows, including the target exactly once. */ export declare function flattenLineage(trace: SessionLineageTrace, bound?: LineageBounds): LineageRow[]; //# sourceMappingURL=lineage.d.ts.map