import { Fraction } from './fraction'; import { GuitarStroke, TimedStringBend } from './guitargesture'; import { NotationIdentity } from './note'; import { StaveNoteStruct } from './stavenote'; import { TabNoteStruct } from './tabnote'; /** A written position uses VexFlow note lines (1 = bottom line, 5 = top on a five-line staff). */ export interface PercussionInstrument { id: string; label: string; line: number; head?: 'normal' | 'cross' | 'circle-cross' | 'triangle'; stem: 'up' | 'down'; } /** A custom kit and its legend share the same named entries. No playback pitches are inferred. */ export declare class PercussionMap { static readonly kit: readonly PercussionInstrument[]; readonly instruments: readonly PercussionInstrument[]; constructor(entries?: readonly PercussionInstrument[]); /** The first instrument supplies the default stem. Callers can override it for another voice. */ note(ids: readonly string[], duration: string, stem?: 'up' | 'down'): StaveNoteStruct; } /** Paired notation uses written open-string pitches and fret numbers relative to the capo. */ export declare class FrettedInstrument { readonly capo: number; private readonly tuning; constructor(tuning?: string, capo?: number); /** Expand an ordered rasgueado into ordinary paired attacks. Offsets are exact whole-note fractions from its start. */ rasgueado(positions: readonly { str: number; fret: number; }[], strokes: readonly (GuitarStroke & { duration: string; })[]): { offset: Fraction; note: { notation: NotationIdentity[]; heads?: readonly import("./stavenote").ChordHeadSpec[]; whiteMensural?: boolean; restLine?: number; musicFont?: string; engraving?: import("./engravingprofile").EngravingProfile; stemDirection?: number; autoStem?: boolean; strokePx?: number; octaveShift?: number; clef?: string; headSource?: import("./note").HeadSource; keys?: string[]; duration: string; line?: number; dots?: number; type?: string; alignCenter?: boolean; durationOverride?: Fraction; }; tab: { notation: NotationIdentity[]; positions: import("./tabnote").TabNotePosition[]; heads?: readonly import("./stavenote").ChordHeadSpec[]; whiteMensural?: boolean; restLine?: number; musicFont?: string; engraving?: import("./engravingprofile").EngravingProfile; stemDirection?: number; autoStem?: boolean; strokePx?: number; octaveShift?: number; clef?: string; headSource?: import("./note").HeadSource; keys?: string[]; duration: string; line?: number; dots?: number; type?: string; alignCenter?: boolean; durationOverride?: Fraction; }; }[]; /** Attach a bend envelope to one played string. Both views retain its semantics and TAB draws the contour. */ bentAttack(positions: readonly { str: number; fret: number; }[], duration: string, spec: TimedStringBend): { note: { notation: NotationIdentity[]; heads?: readonly import("./stavenote").ChordHeadSpec[]; whiteMensural?: boolean; restLine?: number; musicFont?: string; engraving?: import("./engravingprofile").EngravingProfile; stemDirection?: number; autoStem?: boolean; strokePx?: number; octaveShift?: number; clef?: string; headSource?: import("./note").HeadSource; keys?: string[]; duration: string; line?: number; dots?: number; type?: string; alignCenter?: boolean; durationOverride?: Fraction; }; tab: { notation: NotationIdentity[]; positions: import("./tabnote").TabNotePosition[]; heads?: readonly import("./stavenote").ChordHeadSpec[]; whiteMensural?: boolean; restLine?: number; musicFont?: string; engraving?: import("./engravingprofile").EngravingProfile; stemDirection?: number; autoStem?: boolean; strokePx?: number; octaveShift?: number; clef?: string; headSource?: import("./note").HeadSource; keys?: string[]; duration: string; line?: number; dots?: number; type?: string; alignCenter?: boolean; durationOverride?: Fraction; }; }; /** Build independent standard and tab descriptions for the same attack. */ attack(positions: readonly ({ str: number; fret: number; } | { str: number; fret: 'X'; displayKey: string; })[], duration: string): { note: StaveNoteStruct; tab: TabNoteStruct; }; }