import { Annotation } from './annotation'; import { BoundingBox } from './boundingbox'; import { RenderContext } from './rendercontext'; /** Top-to-bottom reading order, first the left hand and then the right. */ declare const keys: readonly ["L1", "L2", "L3", "R1", "R2", "R3"]; export type FluteKey = (typeof keys)[number]; export type FluteKeyState = 'open' | 'closed'; /** One key alternates from its base state to the opposite state and back. */ export interface FluteTrillKey { readonly key: FluteKey; readonly start: FluteKeyState; readonly alternate: FluteKeyState; } /** A six-key diagram entered as physical finger positions. Omitted keys are open. */ export declare class FluteFingering extends Annotation { private readonly states; private readonly scale; private trillKey?; constructor(states: Partial>, { scale }?: { scale?: number; }); /** Return all six named states, independent of the score's written pitch. */ getKeyStates(): Readonly>; /** Mark a moving key while preserving the six underlying finger positions. */ setTrillKey({ key, start, alternate }: FluteTrillKey): this; /** Read the moving key and the direction of its first movement. */ getTrillKey(): FluteTrillKey | undefined; /** Restore all six base symbols on the attached diagram. */ clearTrillKey(): this; /** Describe the visible chart to screen readers and Canvas applications. */ getDescription(): string; /** Include the left-hand labels and the offset right-hand circles in note spacing. */ getWidth(): number; /** Allow five key intervals, a larger hand break and the outer edges of the circles. */ protected getLayoutHeight(): number; /** Full diagram height in renderer pixels. */ getHeight(): number; /** Use the diagram's lower edge as the baseline for annotation and tuplet layout. */ getTextInk(x: number, y: number): BoundingBox; /** Measure the full diagram from its current note position before or after drawing. */ getBoundingBox(): BoundingBox; /** Locate any named key after formatting. The right hand starts below and slightly to the right. */ getKeyCenter(key: FluteKey): { x: number; y: number; }; /** Stroke every outline and fill closed keys, keeping the outer radius fixed in both states. */ protected drawKey(ctx: RenderContext, key: FluteKey, x: number, y: number, radius: number): void; /** Draw the six labeled keys using the same geometry measured by the score. */ draw(): void; } export {};