import { IEmulator } from '../game/iemulator'; /** * The VPX interface is sync, while our implementation is not when initializing. * * This Caching Service caches all calls to the EMU while its initializing and * allows to apply the changes once the emu is ready */ export declare class EmulatorMessageQueue { private readonly queue; private clearedQueue; /** * adds new cache entry * @returns true if entry was added to the cache, false if cache has already been consumed! */ addMessage(cacheType: MessageType, value: number): boolean; replayMessages(emulator: IEmulator): void; } export declare enum MessageType { SetSwitchInput = 1, ClearSwitchInput = 2, ToggleSwitchInput = 3, CabinetInput = 4, ExecuteTicks = 5, SetDipByte = 6 }