import { type AnyNode, type AnyNodeId, DuctFittingNode, type DuctSegmentNode, PipeFittingNode, type PipeSegmentNode } from '@pascal-app/core'; import type { ScenePort } from '@pascal-app/editor/distribution'; export declare function createDuctRunEndCap(duct: DuctSegmentNode, endpoint?: 'start' | 'end'): DuctFittingNode | null; export declare function createPipeRunEndCap(pipe: PipeSegmentNode, endpoint?: 'start' | 'end'): PipeFittingNode | null; export declare function isRunEndCapPort(port: ScenePort, nodes: Readonly>): boolean; export declare function findMatedRunEndCapIds(source: ScenePort | null, nodes: Readonly>, fittingKind: 'duct-fitting' | 'pipe-fitting'): AnyNodeId[]; export declare function findAutomaticRunEndCapIds(runId: AnyNodeId, nodes: Readonly>, fittingKind: 'duct-fitting' | 'pipe-fitting'): AnyNodeId[]; export declare function planRunEndCapFollowUpdates(originalRun: DuctSegmentNode | PipeSegmentNode, nextRun: DuctSegmentNode | PipeSegmentNode, endpoint: 'start' | 'end', nodes: Readonly>): { id: AnyNodeId; data: Partial; }[]; //# sourceMappingURL=automatic-run-end-cap.d.ts.map