import { BoundingBox } from './boundingbox'; import { Element } from './element'; import { Note } from './note'; export interface TupletOptions { bracketed?: boolean; location?: number; notesOccupied?: number; numNotes?: number; ratioed?: boolean; /** Engraved numerator and denominator, independent of the duration multiplier. */ displayRatio?: readonly [number, number]; yOffset?: number; textYOffset?: number; suffix?: string; } export declare const enum TupletLocation { BOTTOM = -1, TOP = 1 } export declare class Tuplet extends Element { static get CATEGORY(): string; notes: Note[]; protected options: Required> & Pick; protected textElement: Element; protected suffixElement: Element; static get LOCATION_TOP(): number; static get LOCATION_BOTTOM(): number; static get NESTING_OFFSET(): number; constructor(notes: Note[], options?: TupletOptions); attach(): void; detach(): void; /** * Set whether or not the bracket is drawn. */ setBracketed(bracketed: boolean): this; /** * Set whether or not the ratio is shown. */ setRatioed(ratioed: boolean): this; /** * Set the tuplet indicator to be displayed either on the top or bottom of the stave. */ setTupletLocation(location: number): this; getNotes(): Note[]; getNoteCount(): number; getNotesOccupied(): number; setNotesOccupied(notes: number): void; resolveGlyphs(): void; getNestedTupletCount(): number; getYPosition(): number; /** Position the bracket and label from the current layout, including retained reflow. */ private positionElements; draw(): void; getBoundingBox(): BoundingBox; }