/** Resolve an arbitrary .dml path (relative to cwd or absolute) for diagramming. */ export declare function resolveDiagramSource(cwd: string, request: string): Promise; /** * Every DML file that should appear in the viewer: all skills and plans in the * active workspace, plus any extra target (which may live anywhere). */ export declare function collectDiagramTargets(cwd: string, extra?: string[]): Promise; /** * Stable viewer/sidecar name. Same-named DML files in different directories get * a short path hash so they can never collide. */ export declare function diagramNameFor(target: string, all: string[], cwd: string): string; export declare function displayPath(cwd: string, target: string): string; export interface DiagramDir { root: string; diagrams: string; vendor: string; vendorFile: string; } /** * Create .pi/deepclause/diagrams/ and place the vendored Mermaid bundle so the * viewer works offline. Existing files are never overwritten. */ export declare function ensureDiagramDir(cwd: string, vendorAssetPath: string): Promise;