import { type XmlNode } from '../../xml/tree'; import { type DmlColorWithMods } from './colors'; import type { EffectsRef } from './effect'; import type { Fill } from './fill'; import type { Geometry } from './geometry'; import type { LineProperties } from './line'; import type { ShapeProperties } from './shape-properties'; import type { TextBody, TextBodyProperties } from './text'; /** Parse the first known color base element (with its mods) found inside `parent`. */ export declare const parseDmlColor: (parent: XmlNode) => DmlColorWithMods | undefined; /** Serialize a color directly (without an enclosing wrapper). */ export declare const serializeDmlColor: (c: DmlColorWithMods) => string; /** Parse the first fill element under `parent` (any of the 6 kinds). */ export declare const parseFill: (parent: XmlNode) => Fill | undefined; export declare const serializeFill: (f: Fill) => string; export declare const parseLine: (el: XmlNode) => LineProperties; export declare const serializeLine: (ln: LineProperties) => string; export declare const parseGeometry: (parent: XmlNode) => Geometry | undefined; export declare const serializeGeometry: (g: Geometry) => string; export declare const parseEffects: (parent: XmlNode) => EffectsRef | undefined; export declare const serializeEffects: (e: EffectsRef) => string; export declare const parseTextBodyProperties: (el: XmlNode) => TextBodyProperties; export declare const serializeTextBodyProperties: (tag: string, p: TextBodyProperties) => string; /** Parse an `` (or `` / ``) element. */ export declare const parseTextBody: (el: XmlNode) => TextBody; /** Serialise a TextBody. Wrapper defaults to `` to match chart usage. */ export declare const serializeTextBody: (body: TextBody, wrapperTag?: string) => string; /** * Parse a `` (or `` / ``) element. Caller provides the * element directly — we don't filter by tag name so the helper works for any * namespace prefix. */ export declare const parseShapeProperties: (el: XmlNode) => ShapeProperties; /** Serialize a ShapeProperties as `...`. Wrapper defaults to ``. */ export declare const serializeShapeProperties: (sp: ShapeProperties, wrapperTag?: string) => string;