import { type XmlElement } from './dom.js'; import type { DiagramColor } from './types.js'; /** Reads the colour element held directly by `container` (`a:solidFill`, `dgm:fillClrLst` item...). */ export declare function parseDrawingColorIn(container: XmlElement | undefined): DiagramColor | undefined; /** Reads one colour element (`a:srgbClr`, `a:schemeClr`, ...) and its transform children. */ export declare function parseDrawingColor(element: XmlElement): DiagramColor | undefined; /** Every colour element directly under `container`, in order (a `dgm:fillClrLst`). */ export declare function parseDrawingColorList(container: XmlElement | undefined): DiagramColor[]; /** Theme lookup the host supplies: `accent1`, `dk1`, `lt1`, `tx1`, `bg1`... to `#RRGGBB`. */ export interface DrawingColorTheme { scheme(name: string): string | undefined; } export interface ResolvedDrawingColor { /** `#RRGGBB`. */ hex: string; /** 0..1; 1 when the colour has no alpha transform. */ alpha: number; /** Transforms this resolver does not apply, so a caller can report an approximation. */ unapplied: string[]; } /** * Resolves a colour to `#RRGGBB` plus alpha. Applies the transforms in the order PowerPoint does * (structural, shade/tint in linear light, one HSL round trip, alpha) and lists those it does not * apply (`red*`, `green*`, `blue*`, `gamma`) in `unapplied`. Returns `undefined` when the base * colour cannot be determined (an unknown theme slot, `phClr` with no host value, ...). */ export declare function resolveDrawingColor(color: DiagramColor, theme?: DrawingColorTheme): ResolvedDrawingColor | undefined; //# sourceMappingURL=drawing-color.d.ts.map