@bitblit/asyncglk
Version:
A Typescript Glk library
24 lines (23 loc) • 757 B
TypeScript
import type { AsyncDialog, DialogOptions } from '../common/interface.js';
export declare class CheapAsyncDialog implements AsyncDialog {
'async': true;
private rl;
private stdout;
constructor();
init(_options: DialogOptions): Promise<void>;
delete(path: string): Promise<void>;
exists(path: string): Promise<boolean>;
get_dirs(): {
storyfile: string;
system_cwd: string;
temp: string;
working: string;
};
prompt(extension: string, _save: boolean): Promise<string | null>;
read(path: string): Promise<Uint8Array | null>;
set_storyfile_dir(path: string): {
storyfile: string;
working: string;
};
write(files: Record<string, Uint8Array>): Promise<void>;
}