import type { RGB } from './base'; /** * Calculates the relative brightness (luminance), normalized to 0 for black and 1 for white, * based on the w3c definition: https://www.w3.org/TR/WCAG20/#relativeluminancedef */ export default function getLuminance(c: RGB): number;