/** * The closed `ST_ShapeType` enumeration and the alias table that folds this * repository's internal / UI-facing shape identifiers onto it. * * `a:prstGeom/@prst` is typed `ST_ShapeType` (ISO/IEC 29500-1 section * 20.1.10.55 / A.4.1), a **closed 187-value enumeration**. Emitting anything * else produces a package PowerPoint rejects at schema-validation time, so * every writer that fills `@prst` must pass its identifier through * {@link normalizeStShapeType} first. * * Two families of non-spec identifier exist in this codebase and both are * resolved here rather than at the call sites: * * - **UI / legacy aliases** the shape picker and the shared insert catalogue * offer under friendlier names (`rightTriangle`, `cross`, `flowChartData`, * ...). Each maps to the real preset it draws. * - **Internal `SupportedShapeType` tokens** (`cylinder`, `rtArrow`, * `connector`) which are render-layer classifications, not OOXML names. * * Lookup is exact-match first (deck-authored values are already canonical), * then case-insensitive, then the alias table. Unknown identifiers resolve to * `undefined` so the caller can substitute a safe default instead of writing * an invalid token. */ /** * The canonical `ST_ShapeType` enumeration, in ISO/IEC 29500-1 declaration * order. Exactly 187 values. */ export declare const ST_SHAPE_TYPE_VALUES: readonly string[]; /** * Non-spec identifier (lower-cased) to the `ST_ShapeType` value it draws. * * Every entry is a shape this repository can produce but OOXML cannot name: * UI labels from the shape picker, PowerPoint UI names that differ from the * schema name, and internal `SupportedShapeType` render classifications. */ export declare const PRESET_GEOMETRY_ALIASES: Readonly>; /** * Whether `name` is one of the 187 `ST_ShapeType` values, spelled exactly as * the schema declares it. */ export declare function isStShapeType(name: string | undefined): boolean; /** * Resolve any shape identifier this codebase can produce to the exact * `ST_ShapeType` spelling that belongs in `a:prstGeom/@prst`. * * @param name - A preset name, picker label, or internal shape token. * @returns The canonical `ST_ShapeType` value, or `undefined` when the * identifier is not a preset at all (callers should fall back to a * safe default such as `'rect'` rather than writing it out). */ export declare function normalizeStShapeType(name: string | undefined): string | undefined; //# sourceMappingURL=preset-geometry-names.d.ts.map