export type WorldInputContext = "world" | "ui" | "transit"; export interface LatchedAction { action: string; code: string; pressedAt: number; } export interface InputRouterOptions { resolveAction: (code: string) => string | undefined; onPress: (action: LatchedAction) => void; onRelease: (action: LatchedAction) => void; } export declare class WorldInputRouter { private readonly options; private context; private readonly held; constructor(options: InputRouterOptions); setContext(context: WorldInputContext, _now: number): void; resync(heldCodes: Iterable, now: number): void; keyDown(code: string, now: number): boolean; keyUp(code: string): boolean; activeActions(): readonly LatchedAction[]; releaseAll(): void; } //# sourceMappingURL=inputRouter.d.ts.map