export { WASIProcExit } from "./abi.js"; import { WASIOptions } from "./options.js"; export * from "./features/all.js"; export * from "./features/args.js"; export * from "./features/clock.js"; export * from "./features/environ.js"; export { useFS, useStdio, useMemoryFS, MemoryFileSystem, } from "./features/fd.js"; export * from "./features/proc.js"; export * from "./features/random.js"; export * from "./features/tracing.js"; export declare class WASI { /** * `wasiImport` is an object that implements the WASI system call API. This object * should be passed as the `wasi_snapshot_preview1` import during the instantiation * of a [`WebAssembly.Instance`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Instance). */ readonly wasiImport: WebAssembly.ModuleImports; private instance; private isStarted; constructor(options?: WASIOptions); private view; /** * Attempt to begin execution of `instance` as a WASI command by invoking its`_start()` export. If `instance` does not contain a `_start()` export, or if`instance` contains an `_initialize()` * export, then an exception is thrown. * * `start()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. If * `instance` does not have a `memory` export an exception is thrown. * * If `start()` is called more than once, an exception is thrown. */ start(instance: WebAssembly.Instance): number; /** * Attempt to initialize `instance` as a WASI reactor by invoking its`_initialize()` export, if it is present. If `instance` contains a `_start()`export, then an exception is thrown. * * `initialize()` requires that `instance` exports a [`WebAssembly.Memory`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WebAssembly/Memory) named`memory`. * If `instance` does not have a `memory` export an exception is thrown. * * If `initialize()` is called more than once, an exception is thrown. */ initialize(instance: WebAssembly.Instance): void; }