/** * Canonical CMYK process-ink colours — the **single source of truth** for how * the four process plates are tinted and swatched everywhere in the viewer: the * codex ink list, the in-browser PDF-scan ink list, the separation plate * composite, the densitometer readout, and the Pantone-gold process fallback. * * These tables used to be duplicated across modules and had drifted apart — the * plate composite tinted Cyan with `[0,183,235]` and the densitometer read * `#00b7eb` while the ink lists used `[0,174,239]`, so the plate, the side-panel * swatch, and the densitometer readout disagreed for the *same* ink. Derive * every consumer from this one table so they can never diverge again. * * Values are sRGB approximations of the coated process primaries. * * @public */ export declare const PROCESS_INK_RGB: Record; /** * Canonical RGB for a process-ink name — accepts full names (`"Cyan"`) and the * single-letter shorthands (`"C"`), case-insensitively. Returns `null` for * anything that isn't one of the four process inks, so callers fall back to a * spot swatch / hash colour. * * @public */ export declare function processInkRgb(name: string): [number, number, number] | null; /** `#rrggbb` for an RGB triple (clamped to 0..255). */ export declare function rgbToHex([r, g, b]: [number, number, number]): string; /** * Parse a `#rgb` / `#rrggbb` hex string to an sRGB triple, or `null` if it * isn't a valid hex colour. The inverse of {@link rgbToHex}; used to turn the * resolved swatch hex (which the inks panel shows) back into an RGB tint for * the separation plate composite, so plate and swatch share one colour source. */ export declare function hexToRgb(hex: string): [number, number, number] | null; /** * Canonical `#rrggbb` for a process-ink name, or `null` if it isn't a process * ink (caller falls back to a spot swatch). * * @public */ export declare function processInkHex(name: string): string | null; /** True iff `name` is one of the four process inks (full name or shorthand). */ export declare function isProcessInkName(name: string): boolean; //# sourceMappingURL=process-inks.d.ts.map