import { IColorFormat } from '../color-picker';
import type { IColors, IRect, IRgba } from './types';
/**
 * 加载base64图片
 * @param base64
 * @returns
 */
export declare const loadImage: (base64: string) => Promise<unknown>;
export declare function hex(n: number): string;
/**
 * rbga对象转化为16进制颜色字符串
 * @param rgba
 * @returns
 */
export declare const rbgaObjToHex: (rgba: IRgba) => string;
/**
 * rbga对象转化为rgba css颜色字符串
 * @param rgba
 * @returns
 */
export declare const rbgaObjToRgba: (rgba: IRgba) => string;
/**
 * 显示颜色信息，包括放大镜和颜色值
 * @param params
 * @returns
 */
export declare const renderColorInfo: (params: any) => any;
/**
 * 绘制放大镜
 * @param colors 颜色二位数组
 * @param size 单个像素点显示大小
 * @returns
 */
export declare function drawPipette(colors: IColors, size?: number): any;
/**
 * 颜色方块和颜色值显示
 * @param color
 * @returns
 */
export declare function drawColorBlock(color: string): any;
/**
 * 显示提示
 * @param content
 * @param tooltipVisible
 * @returns
 */
export declare function drawTooltip(content: string, tooltipVisible?: boolean): any;
/**
 * 绘制放大镜canvas
 * @param colors
 * @param size
 * @returns
 */
export declare function drawPipetteCanvas(colors: IColors, size: number): any;
/**
 * 生成canvas
 * @param param0
 * @returns
 */
export declare function getCanvas({ width, height, scale, attrs, }: {
    width?: number;
    height?: number;
    scale?: number;
    attrs?: Record<string, any>;
}): {
    canvas: any;
    ctx: any;
};
/**
 * 获取canvas某一区域的颜色值二位数组
 * @param ctx
 * @param rect
 * @param scale
 * @returns
 */
export declare const getCanvasRectColor: (ctx: any, rect: IRect, scale?: number) => any[][];
/**
 * 根据 colorFormat 格式化颜色
 */
export declare const formatColor: (hexColor: string, colorFormat: IColorFormat) => string;
/**
 * hex 转 rgba 对象
 */
export declare const hexToRgba: (hex: string) => {
    r: number;
    g: number;
    b: number;
    a: number;
};
/**
 * rgba 转 hsl
 */
export declare const rgbaToHsl: (rgba: {
    r: number;
    g: number;
    b: number;
    a: number;
}) => {
    h: number;
    s: number;
    l: number;
};
/**
 * rgba 转 hsv
 */
export declare const rgbaToHsv: (rgba: {
    r: number;
    g: number;
    b: number;
    a: number;
}) => {
    h: number;
    s: number;
    v: number;
};
