import { BoundingBox } from './boundingbox'; import { Element } from './element'; import { ChordHarmony } from './notationspelling'; /** Frets are absolute; 0 = open, 'x' = muted. A barre names one-based string numbers. */ export interface FretDiagramSpec { /** In a horizontal frame the nut is at the left and the highest string is on top. */ orientation?: 'vertical' | 'horizontal'; frets: readonly (number | 'x')[]; /** Left-hand fingers 1–4, low string first. Null or an omitted entry leaves the dot plain. */ fingerings?: readonly (number | null | undefined)[]; firstFret?: number; rows?: number; barre?: { fret: number; from: number; to: number; }; } export declare class FretDiagram extends Element { /** The registry and font metrics both use the diagram category. */ static get CATEGORY(): string; /** Return a fresh frame for this harmony and tuning. Omitting the name selects the first registered shape. */ static lookupVoicing(harmony: ChordHarmony, tuning: string, name?: string): FretDiagramSpec | undefined; private readonly orientation; private readonly frets; private fingerings; private readonly first; private readonly rows; private readonly barre?; constructor(spec: FretDiagramSpec); /** Replace the finger assignments for this chord. Passing no assignments clears all labels. */ setFingerings(fingerings?: NonNullable): this; /** Grid coordinates run across strings (low to high) and along the neck (nut to bridge). */ private gridPoint; /** The top-left position includes the open-string marks and the upright starting-fret label. */ getBoundingBox(): BoundingBox; /** Paint the digit over the dot and any barre that passes through it. */ private drawFinger; draw(): void; }