UNPKG

asciitorium

Version:

an ASCII ui framework for web + cli

15 lines (14 loc) 768 B
import type { Alignment } from './types'; import { State } from './State'; export declare function resolveAlignment(align: Alignment | undefined, parentWidth: number, parentHeight: number, childWidth: number, childHeight: number): { x: number; y: number; }; export declare function isState<T>(v: any): v is State<T>; export declare function isNodeEnvironment(): boolean; export declare function isWebEnvironment(): boolean; export declare function isCPUSupported(): boolean; export declare function isMemorySupported(): boolean; export declare function setupKeyboardHandling(handleKey: (key: string) => void): Promise<void>; export declare function validateWebEnvironment(): void; export declare function loadAsciiAsset(relativePath: string): Promise<string>;