/** The small part of an opentype.js Font needed for portable SVG export. */ export interface SVGOutlineFont { charToGlyphIndex(character: string): number; getAdvanceWidth(text: string, size: number): number; getPath(text: string, x: number, y: number, size: number): { toPathData(decimalPlaces: number): string; }; } /** A loaded font face. Supply the same fonts used to lay out the score. */ export interface SVGFont { family: string; font: SVGOutlineFont; /** Defaults to normal. Supply a separate face for bold text. */ weight?: string | number; /** Defaults to normal. Supply a separate face for italic text. */ style?: string; } /** * Clone a VexFlow SVG and replace all text with paths. Fail if any glyph is missing. * This accepts SVGs produced by SVGContext, not arbitrary SVG text layouts or CSS. */ export declare function svgWithFontPaths(svg: SVGSVGElement, fonts: SVGFont[]): SVGSVGElement;