UNPKG

@bitblit/asyncglk

Version:
20 lines (19 loc) 705 B
import type { GlkTypedArray } from '../common/misc.js'; import type { FileRef as DialogFileRef } from '../common/protocol.js'; import { CachingDialogWrapper } from '../dialog/common/cache.js'; import type { GlkFref } from './interface.js'; export declare class FileRef implements GlkFref { binary: boolean; private Dialog; disprock?: number; filename: string; next: FileRef | null; prev: FileRef | null; private dfref; rock: number; constructor(Dialog: CachingDialogWrapper, filename: string, dialog_fref: DialogFileRef, rock: number, usage: number); delete_file(): void; exists(): boolean; read(): Uint8Array | null; write(buf: GlkTypedArray): void; }