import chroma from 'chroma-js'; export declare class ColorMatrix { readonly log: { info(message: string, ...data: unknown[]): void; warn(message: string, ...data: unknown[]): void; error(message: string, ...data: unknown[]): void; debug: { info(message: string, ...data: unknown[]): void; warn(message: string, ...data: unknown[]): void; error(message: string, ...data: unknown[]): void; }; }; private _matrix; /** * The color matrix represents the colors of the DataTableList etc. * One-to-one correspondence between colors and chart element or group. */ get matrix(): string[][]; constructor(matrix: string[][]); /** * Get one color from color matrix. * @remark * If the coordinates are outside the range of the matrix, the colors will be cycled. * @param row * The row index of colors representing the `dimension`. * @param column * The column index of color representing the `category`. * @returns * The color corresponding to the data element. */ get(row: number, column: number): string; /** * Narrow the gap between colors for aesthetics. * @param maxDistance * The color distance of specific color space. * @param colorSpace * The color represent method such as `rgb` or `hsl`. */ nice(maxDistance?: number, colorSpace?: Keys): void; }