import type { NotationIdentity } from './note'; /** One right-hand action. Direction follows the physical order of strings for either arrow convention. */ export interface GuitarStroke { finger: 'p' | 'i' | 'm' | 'a' | 'e'; direction: 'bass-to-treble' | 'treble-to-bass'; golpe?: boolean; /** One freely rolled chord occupies its written value. Individual finger attacks are unspecified. */ roll?: boolean; arrows?: 'strings' | 'hand'; } /** Endpoints are exact fractions of this attack's duration, measured from its onset. */ export interface TimedStringBend { string: number; semitones: number; rise: readonly [number, number]; hold?: readonly [number, number]; release?: readonly [number, number]; /** Optional written amount, e.g. “½”. Defaults to full, ½ or an explicit semitone count. */ label?: string; } /** A string tie carries the target between two adjacent events. Rise belongs to the first event, and * hold and release are measured from the start of the tied continuation. */ export interface TiedBend { semitones: number; rise: readonly [number, number]; hold: readonly [number, number]; release: readonly [number, number]; label?: string; } /** Normalize the written amount independently of the bend's horizontal length. */ export declare function bendAmount(bend: Pick): string; /** Check the clocks of the initial attack and tied continuation independently. */ export declare function copyTiedBend(bend: TiedBend): TiedBend; /** Validate the performed order before constructing a modifier or changing a note. */ export declare function copyBend(bend: TimedStringBend): TimedStringBend; /** Preserve the action as structured score metadata as well as a spoken description. */ export declare function strokeIdentity(action: GuitarStroke): NotationIdentity;