import type Artist from './Artist'; import type { StaveGroup } from './Artist'; /** * NoteBuilder handles note creation, durations, rests, and chord expansion. * It is intentionally stateful and mutates the parent Artist state directly. */ export declare class NoteBuilder { private artist; private signs; /** * Create a note builder bound to an Artist. */ constructor(artist: Artist); /** * Given a fret/string pair, return note name, octave, and accidental. * Design note: this uses the Artist key manager to respect the current key. */ getNoteForFret(fret: string, string: number): [string, string | number, string | null]; /** * Convert ABC-style note data into a note name, octave, and accidental. */ getNoteForABC(abc: any, string: number): [string, number, string | null]; /** * Add a notation (staff) note, with accidentals and optional playback pitch. */ addStaveNote(note_params: any): void; /** Resolve signs in musical time. A barline in any voice resets the staff. */ applyAccidentals(group: StaveGroup): void; /** Reuse the sign across draws. An edit can change which sign a later voice needs. */ private updateSign; /** * Add a tablature note (TabNote) with optional playback pitches. */ addTabNote(spec: any, play_note?: any): void; /** Draw one dot per augmentation on every head of the attack. */ private attachDots; /** Keep slash heads separate from the rhythmic value shared with tab and text. */ setDuration(time: string, dot?: boolean | number): void; /** Add one kit attack. A timing spacer keeps the fixed Artist's parallel voice arrays aligned. */ addDrums(ids: string[]): void; /** Position rests in staff coordinates. ## leaves the default line to VexFlow. */ addRest(params: Record): void; /** * Expand a chord into multiple notes across strings/positions and add them. * Design note: chords can represent stacked notes on the same string, so we * track "positions" per string to keep multi-stop logic intact. */ addChord(chord: any[], chord_articulation: string | null, chord_decorator: string | null): void; /** * Convenience wrapper for adding a single note as a one-note chord. */ addNote(note: any): void; }