import type { RGBColour } from "./types"; /** * Finds the nearest RGB colour in a palette to the given RGB colour. * * @param {RGBColour} colour - The RGB colour to find the nearest match for. * @param {RGBColour[]} palette - An array of RGB colours to search for the nearest match in. * @returns {RGBColour} The RGB colour in the palette that is closest to the given colour. * If the palette has fewer than 2 colours, or if it is undefined or null, the original colour is returned. */ export declare function findNearestRGBColour(colour: RGBColour, palette: RGBColour[]): RGBColour;