import { ChantClef, ChantLine, ChantStave } from './chantstave'; import { RenderContext } from './rendercontext'; /** Natural pitches are written in singing order, e.g. ['c/4', 'd/4']. */ export interface ChantSyllable { pitches: readonly string[]; syllable: string; } /** Each new system repeats the selected movable clef. Dimensions are renderer pixels. */ export interface ChantPhraseOptions { x: number; y: number; width: number; clef: ChantClef; line: ChantLine; } /** A rendered neume and its lyric share this horizontal center on the returned stave. */ export interface ChantGroupPlacement extends ChantSyllable { kind: 'punctum' | 'podatus' | 'clivis'; x: number; ys: number[]; } /** An oversized syllable gets a system wide enough to fit its complete neume and text. */ export interface ChantPhraseRow { stave: ChantStave; groups: ChantGroupPlacement[]; lyricY: number; } /** A phrase can be drawn repeatedly at different widths from the same syllables. */ export declare class ChantPhrase { private readonly syllables; constructor(syllables: readonly ChantSyllable[]); /** Measure whole syllables before choosing breaks. Return the exact printed pitch positions. */ draw(ctx: RenderContext, options: ChantPhraseOptions): ChantPhraseRow[]; }