export { getImageData } from './getImageData'; /** * Extract representative colors from an image. * @remarks because of it's dependency on `` * this function only works in the browser. * * In nodejs use `getPaletteFromImageData` directly instead. * @param image the image to extract the palette from. * Must be loaded/complete. * @param numberOfColors upper limit on the number of colors to be returned * @param fast if true the image will be downscaled to 64x64, 128x128 otherwise. * The precise sizes used may change in the future. * @returns representative colors of the image ordered by importance (size of the cluster) */ export declare function getPalette(image: CanvasImageSource, numberOfColors?: number, fast?: boolean): string[]; /** * Extract representative colors from image data. * @param imageData image data to extract the colors from * @param numberOfColors upper limit on the number of colors to be returned * @returns representative colors of the image ordered by importance (size of the cluster) * */ export declare function getPaletteFromImageData(imageData: ImageData, numberOfColors?: number): string[]; /** * Fits a linear gradient to an image * @remarks because of it's dependency on `` * this function only works in the browser. * In nodejs use `fitGradientToImageData` directly instead. * @param image the image to fit the gradient to * Will be scaled down to at most 32x32. * Must be loaded/complete. * @returns a string that can be used as a css gradient */ export declare function fitGradient(image: CanvasImageSource): string; /** * Fits a linear gradient to image data * @param imageData the image data to fit the gradient to. * @returns a string that can be used as a css gradient. */ export declare function fitGradientToImageData(imageData: ImageData): string;