import type { Graph } from "../../graph/graph.js"; import { D3DagLayout, type D3DagLayoutProps } from "./d3-dag-layout.js"; export type CollapsableD3DagLayoutProps = D3DagLayoutProps & { /** Whether to collapse linear chains of nodes into a single representative. */ collapseLinearChains?: boolean; }; export declare class CollapsableD3DagLayout extends D3DagLayout { static defaultProps: Required; private _chainDescriptors; private _nodeToChainId; private _collapsedChainState; private _hiddenNodeIds; constructor(props?: CollapsableD3DagLayoutProps); setProps(props: Partial): void; updateGraph(graph: Graph): void; toggleCollapsedChain(chainId: string): void; setCollapsedChains(chainIds: Iterable): void; protected _refreshCollapsedChains(): void; protected _updateCollapsedChainNodeMetadata(): void; protected _shouldSkipNode(nodeId: string | number): boolean; protected _mapNodeId(nodeId: string | number): string | number; private _createChainId; private _isChainCollapsed; } //# sourceMappingURL=collapsable-d3-dag-layout.d.ts.map