/** A chord's transposable pitches and its literal quality, extensions and alterations. */ export interface ChordHarmony { root: string; quality?: string; bass?: string; } /** One printable segment. tieNext joins a pitched continuation across a requested boundary. */ export interface RhythmSegment { start: number; duration: string; dots: number; tieNext: boolean; } export declare class NotationSpelling { /** Transpose by both chromatic semitones and diatonic steps, e.g. +2/+1 for B-flat clarinet. */ static transpose(key: string, semitones: number, steps: number): string; /** Return a new harmony. Only its root and optional slash bass participate in pitch spelling. */ static transposeChord(harmony: ChordHarmony, semitones: number, steps: number): ChordHarmony; /** Print the spelled pitches with musical accidentals and copy the chord suffix verbatim. */ static chordText(harmony: ChordHarmony): string; /** Preserve the mode while spelling the transposed tonic. Reject unavailable standard signatures. */ static transposeKey(key: string, semitones: number, steps: number): string; /** Spell on a 1/64-note grid. Cuts are absolute barlines or group boundaries supplied by the caller. */ static rhythm(start: number, length: number, cuts?: readonly number[], rest?: boolean): RhythmSegment[]; } /** Accidental memory for a single staff and bar. A signature maps a letter to a written sign in every octave. */ export declare class WrittenAccidentalState { private readonly seen; private readonly signature; constructor(signature?: Readonly>); /** Start a new bar in the same signature. Construct a new state on a signature change. */ reset(): void; /** Return the sign to print. Cautionaries print on request even when the sign is already in force. */ sign(key: string, sign: string, cautionary?: boolean): string | undefined; }