import { OlePptxElement } from 'pptx-viewer-core'; import { ResolvedOleType } from 'pptx-viewer-shared'; /** * View-model builder for `ole` (embedded object) elements (port of the * vanilla binding's `renderOleElement`). Type resolution, brand colours, * labels, byte formatting, and MIME openability all come from * `pptx-viewer-shared`; this module only assembles the display strings and * the data-driven placeholder icon shapes for the `OleView` SFC. */ export interface OleView { type: ResolvedOleType; typeColor: string; typeLabel: string; badgeLabel: string; badgeFontSize: number; ariaLabel: string; /** Multi-line info caption (type, name, size, progId): the tooltip. */ titleText: string; previewSrc: string | undefined; /** Primary display name in the placeholder box. */ displayName: string; /** Type sublabel under the name; only shown when a fileName exists. */ sublabel: string | undefined; /** Inline style string for the typed placeholder box. */ placeholderStyle: string; /** Recovered embedded payload (data URL); enables the action bar. */ embeddedData: string | undefined; downloadName: string; /** Compact human-readable payload size. */ size: string | undefined; /** Whether the payload's MIME type is browser-renderable (Open button). */ canOpen: boolean; } /** Build the full display view for an OLE element. */ export declare function buildOleView(element: OlePptxElement): OleView; /** One primitive of a data-driven placeholder icon. */ export interface OleIconShape { tag: 'rect' | 'line' | 'text'; attrs: Record; text?: string; } /** Icon primitives for a resolved OLE type. */ export declare function getOleIconShapes(type: ResolvedOleType): OleIconShape[]; //# sourceMappingURL=ole-view.d.ts.map