@bitblit/asyncglk
Version:
A Typescript Glk library
15 lines (14 loc) • 656 B
TypeScript
import type { Provider } from './interface.js';
export declare const ALERT_MODE_ALERT = 0;
export declare const ALERT_MODE_CONFIRM = 1;
export declare const ALERT_MODE_PROMPT = 2;
export type AlertMode = typeof ALERT_MODE_ALERT | typeof ALERT_MODE_CONFIRM | typeof ALERT_MODE_PROMPT;
export declare class NullProvider implements Provider {
browseable: boolean;
next: Provider;
delete(_path: string): Promise<void>;
exists(_path: string): Promise<null>;
read(_path: string): Promise<null>;
write(_files: Record<string, Uint8Array>): Promise<void>;
}
export declare function show_alert(title: string, message: string): Promise<void>;