export type WASIPath = string; export type WASIFS = { [path: WASIPath]: WASIFile; }; export type BinaryWASIFS = { [path: WASIPath]: BinaryWASIFile; }; export type WASITimestamps = { access: Date; modification: Date; change: Date; }; export type WASIFile = { path: WASIPath; timestamps: WASITimestamps; } & ({ mode: "string"; content: string; } | { mode: "binary"; content: Uint8Array; }); export type BinaryWASIFile = { path: WASIPath; timestamps: WASITimestamps; mode: "binary"; content: Uint8Array; }; export type WASIExecutionResult = { exitCode: number; fs: WASIFS; };