import { Config } from 'tailwindcss'; import { Plugin } from 'chart.js'; declare type InvalidColorHandling = "ignore" | "throw" | "warn"; declare interface ParsableOptions extends Record { color: string; borderColor: string; backgroundColor: string[] | string; hoverBorderColor: string; hoverBackgroundColor: string; pointBackgroundColor: string; pointBorderColor: string; pointHoverBackgroundColor: string; pointHoverBorderColor: string; } declare const twColorsPlugin: (tailwindConfig: Config, defaults?: Partial, options?: TwColorsPluginOptions) => Plugin; export = twColorsPlugin; declare interface TwColorsPluginOptions { /** * How to handle invalid colors. * `warn` keeps them as-is and warns once per chart and color. * `ignore` keeps them as-is without warnings. * `throw` throws an error. If a color array contains an invalid entry, * none of the converted colors from that array are applied to the chart. * * @default "warn" */ invalidColorHandling?: InvalidColorHandling; }