import { FontInfo } from './font'; /** Script position relative to the parent chord's baseline. */ export type ChordSymbolPosition = 'baseline' | 'superscript' | 'subscript'; /** A boundary adjustment in parent-font em units. Characters are literal Unicode values. */ export interface ChordSymbolKerningPair { left: string; right: string; position: ChordSymbolPosition; adjustmentEm: number; } /** Exact faces and style for a calibrated pair table. Custom profiles are per chord. */ export interface ChordSymbolKerningProfile { textFont: string; musicFont: string; weight?: string | number; style?: string; pairs: readonly ChordSymbolKerningPair[]; } /** Text stays together until a music glyph or script boundary changes the font run. */ export interface ChordSymbolText { text: string; position: ChordSymbolPosition; } /** A measured run, in unscaled score coordinates, shared by Canvas and SVG. */ export interface ChordSymbolRun extends ChordSymbolText { font: FontInfo; x: number; y: number; metrics: TextMetrics; } /** Match explicit leading faces, not a guess about which fallback face supplied a glyph. */ export declare function chordKerningProfile(font: FontInfo, custom?: ChordSymbolKerningProfile): ChordSymbolKerningProfile | undefined; /** Rebuild positions on every format pass. No accumulated shifts or separate SVG-only corrections. */ export declare function layoutChordRuns(blocks: readonly ChordSymbolText[], font: FontInfo, profile: ChordSymbolKerningProfile, options: { spacing: number; ratio: number; superscript: number; subscript: number; }, measure: (text: string, font: FontInfo) => TextMetrics): { runs: ChordSymbolRun[]; width: number; };