UNPKG

asciitorium

Version:
15 lines (14 loc) 772 B
import { State } from './State.js'; export declare function isState<T>(v: any): v is State<T>; export declare function isNodeEnvironment(): boolean; export declare function isWebEnvironment(): boolean; export declare function isMobileDevice(): boolean; export declare function isCPUSupported(): boolean; export declare function isMemorySupported(): boolean; export declare function setupKeyboardHandling(handleKey: (key: string, event?: KeyboardEvent) => void, handleMobileButton?: (buttonId: string) => void): Promise<void>; export declare function validateWebEnvironment(): void; export declare function loadArt(relativePath: string): Promise<string>; export declare function start(app: { handleKey: (key: string) => void; render: () => void; }): Promise<void>;