import type { ToolModule, ToolResult } from './runner'; export declare const KNOWN_LAYOUTS: readonly ["title", "agenda", "section", "bullets", "statement", "two-column", "cards", "stats", "timeline", "quote", "table", "closing", "sources", "image", "chart", "kpi", "diagram"]; export type DeckLayout = (typeof KNOWN_LAYOUTS)[number]; export type Density = 'airy' | 'normal' | 'compact'; /** One image on a slide. A document id is resolved to a signed URL by the hub. */ export interface DeckImage { /** Fetchable http(s) URL (signed by the backend for a private document). */ url?: string; /** Base64 payload when the caller inlines the bytes. */ data?: string; mime?: string; caption?: string; /** Percent placement (0-100). Omit for a layout-managed slot. */ x?: number; y?: number; w?: number; h?: number; /** `cover` fills and crops; `contain` fits the whole image. */ sizing?: 'cover' | 'contain'; rounded?: boolean; } export interface DeckChartSeries { name?: string; values?: unknown; } export interface DeckChart { type?: string; categories?: unknown; series?: unknown; legend?: boolean; dataLabels?: boolean; yLabel?: string; } export interface DeckDiagramNode { id?: string; label?: string; } export interface DeckDiagramEdge { from?: string; to?: string; label?: string; } export interface DeckDiagram { direction?: 'LR' | 'TB'; nodes?: unknown; edges?: unknown; } /** A decorative preset shape. Percentage geometry, no freeform paths. */ export interface DeckShape { type?: string; x?: number; y?: number; w?: number; h?: number; fill?: string; transparency?: number; radius?: number; } export interface DeckSlide { layout: string; title?: string; subtitle?: string; caption?: string; bullets?: unknown; columns?: unknown; cards?: unknown; stats?: unknown; rows?: unknown; quote?: unknown; notes?: unknown; images?: unknown; chart?: unknown; diagram?: unknown; shapes?: unknown; } export interface DeckSpec { title?: string; slides: DeckSlide[]; } export interface DeckTokens { accent: string; background: string; surface: string; textColor: string; bodyFont: string; headingFont: string; coverStyle: string; titleStyle: string; footerStyle: string; cornerStyle: string; density: Density; } export interface TemplateEntry { id: string; label?: string; summary?: string; preview?: Partial>; } /** Built-in corporate-equivalent defaults (used only when the mirror file is unreadable). */ export declare const FALLBACK_TOKENS: DeckTokens; /** Per-density content budgets. Exported for tests. */ export declare const DENSITY_CAPS: Record; /** * Load the template mirror at runtime (never statically imported: tsc does * not emit JSON assets into dist, so a static import would break at runtime). * Returns null when the file cannot be found or parsed. */ export declare function loadTemplateMirror(): { templates: TemplateEntry[]; } | null; /** Resolve template tokens: mirror lookup + accentColor/density overrides. */ export declare function resolveDeckTokens(params: Record): { tokens: DeckTokens; templateId: string; warnings: string[]; }; /** Parse deckJson (text or object). Throws on invalid/empty specs. */ export declare function parseDeckSpec(raw: unknown): DeckSpec; export interface PlannedSlide { index: number; /** Effective layout after degrading unknowns to bullets. */ layout: DeckLayout; /** Original layout string when it was degraded. */ degradedFrom?: string; titleSize: number; bodySize: number; columns: number; bullets: string[]; } /** * Pure layout planner: per-slide sizes/spacing/columns from density + aspect. * No pptxgenjs calls — safe to unit-test. */ export declare function planDeck(spec: DeckSpec, opts: { density: Density; aspect: '16:9' | '4:3'; }): PlannedSlide[]; export declare class PptxDeckTool implements ToolModule { key: string; run(params: Record): Promise; private inferTitle; private firstBullets; private coerceColumns; private coerceCards; private coerceStats; private coerceTimeline; private coerceQuote; private coerceTableRows; private buildSpeakerNotes; private runLegacy; }