import { type Bounds } from './boundingbox'; import type { SpanAnchor } from './continuousspan'; import type { PlacedCompositionMark } from './easyscore/engraving'; import type { RenderContext } from './rendercontext'; /** A short EasyScore passage whose first attack follows an event in the main score. */ export interface InlineOssia { id: string; at: string; notes: string; clef?: string; label?: string; scale?: number; side?: 'above' | 'below'; /** Group the short notes using native automatic beaming. */ beam?: boolean; } /** A detail's intrinsic ink is measured once. Its host and the current row determine the translation. */ export interface AnchoredDetail { id: string; kind: 'ossia' | 'pedal-down' | 'pedal-up'; anchor: SpanAnchor; above: boolean; ink: Bounds; /** Additional space above a shorter sign so both pedal glyphs share their native baseline. */ topInset?: number; /** Horizontal origin of this drawing in the formatted system. */ originX(): number; draw(context: RenderContext, x: number, y: number): void; } /** Engrave the alternative once, retaining the native notes, clef, accidentals, and beam for either backend. */ export declare function inlineOssia(spec: InlineOssia, anchor: SpanAnchor): AnchoredDetail; /** Right-align release ink at the next timed attack or the end of the stave's music area. */ export declare function pedalSign(id: string, anchor: SpanAnchor, down: boolean): AnchoredDetail; /** Pack details that overlap horizontally; signs on different beats can use the same pedal baseline. */ export declare function placeDetails(details: AnchoredDetail[], row: number, left: number, right: number, envelopes: { top: number; bottom: number; }[]): { staff: number; top: number; mark: PlacedCompositionMark; }[];