import { DrawBatcher } from '../core/DrawBatcher'; import { CanvasLeaf } from '../core/CanvasLeaf'; import { ButtonIcon } from '../cells/buttons'; import { Theme } from '../../../theming/types'; export type BadgeView = 'default' | 'accent' | 'positive' | 'warning' | 'negative' | 'dark' | 'light'; export type BadgeSize = 'xs' | 's' | 'm' | 'l'; export interface CanvasBadgeOptions { view?: BadgeView; size?: BadgeSize; transparent?: boolean; clear?: boolean; leftIcon?: ButtonIcon; rightIcon?: ButtonIcon; pilled?: boolean; theme?: Theme; customColor?: string; customBackgroundColor?: string; } export declare class CanvasBadge extends CanvasLeaf { text: string; view: BadgeView; size: BadgeSize; transparent: boolean; clear: boolean; pilled: boolean; leftIcon?: ButtonIcon; rightIcon?: ButtonIcon; private viewColors; customColor?: string; customBackgroundColor?: string; constructor(id: string, text: string, options?: CanvasBadgeOptions); measure(ctx: CanvasRenderingContext2D): void; onPaint(batcher: DrawBatcher, _ctx: CanvasRenderingContext2D): void; }