import { PatchConfig } from './config.js'; import { PatchDB } from './db.js'; /** Returns the computed legend entry data (colour + strokeWidth) for unit testing. */ export declare function legendEntries(config: PatchConfig): Array<{ label: string; color: string; strokeWidth: number; }>; /** Pure function: compute the top-left translation for the legend group. Exported for unit testing. */ export declare function computeLegendXY(pos: PatchConfig['legendPosition'], viewMinX: number, viewMinY: number, viewMaxX: number, svgHeight: number, legendW: number, legendH: number, pad: number): { x: number; y: number; }; export declare const draw: (text: string, id: string, _version: string, diagram: { db: PatchDB; }) => Promise; declare const _default: { draw: (text: string, id: string, _version: string, diagram: { db: PatchDB; }) => Promise; }; export default _default; //# sourceMappingURL=renderer.d.ts.map