import { ShapedItem } from './text.js'; import type { Color } from './cascade.js'; import type { PaintBackend } from './paint.js'; import type { FaceMatch } from './font.js'; type StringMap = Record; export default class HtmlPaintBackend implements PaintBackend { s: string; fillColor: Color; strokeColor: Color; lineWidth: number; direction: 'ltr' | 'rtl'; font: FaceMatch; fontSize: number; constructor(); style(style: StringMap): string; attrs(attrs: StringMap): string; edge(x: number, y: number, length: number, side: 'top' | 'right' | 'bottom' | 'left'): void; text(x: number, y: number, item: ShapedItem, textStart: number, textEnd: number): void; rect(x: number, y: number, w: number, h: number): void; } export {};