export interface IMidiPlayer { position: null | number; state: 'paused' | 'playing' | 'stopped'; pause(): void; play(): Promise; resume(): Promise; stop(): void; }