/** * Alpha-composites a foreground color over an opaque background and returns * the resulting opaque hex (`#rrggbb`). * * Used by `GlassView` on platforms without native backdrop blur: the glass * tint (e.g. `#ffffffbf`) is flattened over the theme `--background` so the * fallback layer approximates the frosted look without translucency. * * Channels are blended in linear-light space (sRGB values are decoded before * the lerp and re-encoded after). Blending gamma-encoded values directly * biases the mix darker whenever a light tint sits over a darker backdrop; * linear-light compositing is the physically correct model of light passing * through a translucent layer and better matches the native blur result. * * Returns `color` unchanged when either string cannot be parsed. * * @param color - Foreground color (may include alpha), from `useThemeColor` * @param background - Opaque background color to composite onto * @returns Opaque hex string approximating the composited result */ export declare function flattenColorOverBackground(color: string, background: string): string; //# sourceMappingURL=glass-view.utils.d.ts.map