import type { Note, PublicationResult, Stave } from 'vexflow'; import type Artist from '../artist'; import type { Attack, ParsedScore } from '../score/model'; export interface Point { x: number; y: number; } export interface PlaybackRow { top: number; bottom: number; right: number; /** Independently paginated music has its own coordinate system. */ printedPage?: SVGSVGElement; /** Millimeters per logical engraving unit on this page. */ scale?: number; } export interface Position { row: PlaybackRow; x: number; heads: Point[]; } export type Geometry = Map; /** A public Player can discover the layout of the exact parsed revision rendered on its surface. */ export declare const scoreSurfaces: WeakMap Geometry; }>; /** Include both staff and tab, with a little clearance beyond the outside lines. */ export declare function staveRow(staves: Stave[]): PlaybackRow; /** VexFlow retains head order for displaced chord seconds and tab string positions. */ export declare function position(row: PlaybackRow, glyphs: Note[], sounding: boolean[]): Position; /** Fixed scores keep parallel note and tab projections, but play only one voice per part. */ export declare function artistGeometry(artist: Artist): Geometry; /** Source beat and stave extent in the publication composition, including silent beats. */ export interface PrintAnchor { measure: number; x: number; row: PlaybackRow; } /** The printed score uses independently laid out heads, identified by their original IDs. */ export declare function printedGeometry(publication: PublicationResult, attacks: Map, anchors: Map, scale: number): Geometry;