import type { ColorValue } from 'react-native'; import type { ResolvedContrastColors, RgbaColor } from './types'; /** * Alpha-composite normalized foreground channels over normalized background * channels and retain the resulting alpha. */ export declare function compositeRgba(foreground: RgbaColor, background: RgbaColor): RgbaColor; /** * Alpha-composite a literal foreground color over an opaque literal * background and return the resolved hex color. */ export declare function compositeColor(foreground: ColorValue, background: ColorValue): string; /** * Resolve translucent foreground and background literals against an opaque * fallback surface and return both effective colors with their WCAG ratio. */ export declare function resolveContrastColors(foreground: ColorValue, background: ColorValue, fallbackSurface?: ColorValue): ResolvedContrastColors; /** * Calculate the WCAG contrast ratio for two literal colors, compositing alpha * values against the supplied opaque fallback surface. */ export declare function getContrastRatio(foreground: ColorValue, background: ColorValue, fallbackSurface?: ColorValue): number; //# sourceMappingURL=compositing.d.ts.map