import * as os from 'node:os'; import { type Dlopen, type FFICallback, WebEnv } from './web.ts'; import { JS } from '../runtime/ops_js.ts'; import { CLOUD } from '../runtime/ops_cloud.ts'; import * as fs from 'node:fs/promises'; import { CLANG } from '../runtime/ops_clang.ts'; import { DISK } from '../runtime/ops_disk.ts'; import { type TqdmOnProgress } from '../helpers/tqdm.ts'; import { NULL } from '../runtime/ops_null.ts'; export declare class NodeEnv extends WebEnv { NAME: string; CPU_DEVICE: string; PLATFORM: NodeJS.Platform; DEVICES: { CLANG: typeof CLANG; JS: typeof JS; CLOUD: typeof CLOUD; DISK: typeof DISK; NULL: typeof NULL; }; readFile: (path: string) => Promise>; writeFile: typeof fs.writeFile; remove: typeof fs.unlink; realPath: (...paths: string[]) => string; stat: typeof fs.stat; statSync: import("fs").StatSyncFn; writeStdout: (p: string) => boolean; tempFile: (ext?: string) => Promise; homedir: typeof os.homedir; mkdir: (path: string) => Promise; args: () => string[]; machine: () => string; exit: (code: number) => never; exec: (cmd: string) => Promise; dlopen: Dlopen; ptr: (buffer: ArrayBuffer) => any; ptrToU64: (ptr: any) => bigint; u64ToPtr: (u64: bigint) => any; getCString: (ptr: any) => string; getArrayBuffer: (ptr: any, byteLength: number, offset?: number) => ArrayBuffer; callback: FFICallback; prompt: (msg: string) => Promise; sha256: (data: Uint8Array) => Uint8Array; private db?; private tables; private db_name; private get_db; disk_get: (table: string, key: string) => Promise; disk_put: (table: string, key: string, value: any) => Promise; fetchSave: (url: string, path?: string, onProgress?: TqdmOnProgress) => Promise; }