import { SmartArtPptxElement } from 'pptx-viewer-core'; import { DiagramBuildState, RenderedNode, RenderedShape, SmartArtLayoutResult, SvgTextLine } from 'pptx-viewer-shared'; /** * View-model resolution for `smartArt` elements (port of the vanilla * binding's `renderSmartArtElement`). Palette / stroke / shadow / layout * geometry all come from `pptx-viewer-shared`; this module only picks the * rendering path and shapes the data for the `SmartArtView` SFC. */ /** Inline style applied to every SmartArt SVG so it fills the element box. */ export declare const SMARTART_SVG_STYLE = "width: 100%; height: 100%; pointer-events: none; display: block"; /** Resolved SmartArt view: drawing shapes, engine layout, or a placeholder. */ export type SmartArtView = { kind: 'drawing'; viewBox: string; shapes: AccessibleDrawingShape[]; shadow: string | undefined; } | { kind: 'layout'; layout: AccessibleLayout; } | { kind: 'placeholder'; }; export type AccessibleDrawingShape = RenderedShape & { ariaLabel?: string; nodeId?: string; }; export type AccessibleLayout = Omit & { nodes: Array; }; /** Chrome (background / outline) style string for the graphic wrapper. */ export declare function smartArtChromeStyle(element: SmartArtPptxElement): string; /** Assistive-tech diagram label, when the element carries SmartArt data. */ export declare function smartArtAriaLabel(element: SmartArtPptxElement): string | undefined; /** * Pick the rendering path: pre-computed drawing shapes (preferred), the * shared layout engine over the node tree, or an empty placeholder. * * `build` is the active staged diagram build (`p:bldDgm`) during a running * presentation, if any: only the leading nodes / drawing shapes for the current * progress are revealed. The view box is still computed from the FULL shape set * so the diagram does not rescale as it builds (mirrors React / Vue). */ export declare function buildSmartArtView(element: SmartArtPptxElement, build?: DiagramBuildState): SmartArtView; /** * One rendered line of a multi-line SVG label. The fallback layout path gets * its lines (already positioned, with the anchor and baseline resolved) from * the shared `smartArtNodeLabel`; the cached drawing-shape path gets them from * `projectDrawingShapes`. Nothing here recomputes either. */ export type { SvgTextLine }; //# sourceMappingURL=smartart-view.d.ts.map