export type ShapeBuilderPayload = { context: CanvasRenderingContext2D; }; export type CanvasGradientGenerator = (props: ShapeBuilderPayload) => void; export declare const DEFAULT_BACKGROUND_DARK = "#000000"; interface CanvasGradientProps { height: number; color: string; domain: number[]; theme: 'light' | 'dark'; } /** * Given a predefined height, a color and the domain of the data, it creates a linear gradient from top to bottom, bottom to top, or one that goes both directions depending on the domain. * @param height - given chart height * @param color - given main color of the gradient * @param domain - given domain of the chart * @param theme - current theme * @returns CanvasGradientGenerator * @internal */ export declare function createCanvasGradient({ height, color, domain, theme, }: CanvasGradientProps): CanvasGradientGenerator; export {};