import type { Bounds } from './boundingbox'; import { ResolvedSpan, SpanFragment } from './continuousspan'; import { Element } from './element'; import type { Note } from './note'; import { StaveNote } from './stavenote'; import { TabNote } from './tabnote'; /** Measure small pieces of curves and beams so the space under a grace slur or sloping beam stays usable. */ export declare function slurInk(notes: (TabNote | StaveNote)[], exclude?: (owner: Element) => boolean, attachments?: ResolvedSpan): Bounds[]; /** Keep a requested chord head even if another pitch is farther outside. Automatic chords use their outside head. */ export declare function slurHead(note: Note, index: number | undefined, above: boolean): number; export declare function hasSimpleSlurAnchors(span: ResolvedSpan): boolean; /** Build attachments for each closed or continuing end at the selected pitch. */ export declare function fitPitchedSlur(f: SpanFragment, span: ResolvedSpan, events: StaveNote[], exclude?: (owner: Element) => boolean, searchNearby?: boolean): boolean; /** Keep each closed TAB endpoint beside its digit. If crowded, try its outside corner and upper or lower edge. */ export declare function fitTabSlur(f: SpanFragment, ink: Bounds[], start: Bounds, end: Bounds): boolean;