@bytecodealliance/jco 0.10.2 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/lib/wasi_snapshot_preview1.command.wasm +0 -0
  2. package/lib/wasi_snapshot_preview1.reactor.wasm +0 -0
  3. package/obj/exports/wasi-cli-base-environment.d.ts +3 -0
  4. package/obj/exports/wasi-cli-base-exit.d.ts +4 -0
  5. package/obj/exports/wasi-cli-base-preopens.d.ts +5 -0
  6. package/obj/exports/wasi-cli-base-stderr.d.ts +5 -0
  7. package/obj/exports/wasi-cli-base-stdin.d.ts +5 -0
  8. package/obj/exports/wasi-cli-base-stdout.d.ts +5 -0
  9. package/obj/exports/wasi-cli-environment.d.ts +3 -0
  10. package/obj/exports/wasi-cli-exit.d.ts +4 -0
  11. package/obj/exports/wasi-cli-stderr.d.ts +5 -0
  12. package/obj/exports/wasi-cli-stdin.d.ts +5 -0
  13. package/obj/exports/wasi-cli-stdout.d.ts +5 -0
  14. package/obj/exports/wasi-cli-terminal-input.d.ts +4 -0
  15. package/obj/exports/wasi-cli-terminal-output.d.ts +4 -0
  16. package/obj/exports/wasi-cli-terminal-stderr.d.ts +5 -0
  17. package/obj/exports/wasi-cli-terminal-stdin.d.ts +5 -0
  18. package/obj/exports/wasi-cli-terminal-stdout.d.ts +5 -0
  19. package/obj/exports/wasi-clocks-wall-clock.d.ts +6 -0
  20. package/obj/exports/wasi-filesystem-filesystem.d.ts +152 -0
  21. package/obj/exports/wasi-filesystem-preopens.d.ts +5 -0
  22. package/obj/exports/wasi-filesystem-types.d.ts +153 -0
  23. package/obj/exports/wasi-io-streams.d.ts +18 -0
  24. package/obj/exports/wasi-random-random.d.ts +3 -0
  25. package/obj/imports/wasi-cli-base-environment.d.ts +3 -0
  26. package/obj/imports/wasi-cli-base-exit.d.ts +4 -0
  27. package/obj/imports/wasi-cli-base-preopens.d.ts +5 -0
  28. package/obj/imports/wasi-cli-base-stderr.d.ts +5 -0
  29. package/obj/imports/wasi-cli-base-stdin.d.ts +5 -0
  30. package/obj/imports/wasi-cli-base-stdout.d.ts +5 -0
  31. package/obj/imports/wasi-cli-environment.d.ts +3 -0
  32. package/obj/imports/wasi-cli-exit.d.ts +4 -0
  33. package/obj/imports/wasi-cli-stderr.d.ts +5 -0
  34. package/obj/imports/wasi-cli-stdin.d.ts +5 -0
  35. package/obj/imports/wasi-cli-stdout.d.ts +5 -0
  36. package/obj/imports/wasi-cli-terminal-input.d.ts +4 -0
  37. package/obj/imports/wasi-cli-terminal-output.d.ts +4 -0
  38. package/obj/imports/wasi-cli-terminal-stderr.d.ts +5 -0
  39. package/obj/imports/wasi-cli-terminal-stdin.d.ts +5 -0
  40. package/obj/imports/wasi-cli-terminal-stdout.d.ts +5 -0
  41. package/obj/imports/wasi-clocks-wall-clock.d.ts +6 -0
  42. package/obj/imports/wasi-filesystem-filesystem.d.ts +152 -0
  43. package/obj/imports/wasi-filesystem-preopens.d.ts +5 -0
  44. package/obj/imports/wasi-filesystem-types.d.ts +153 -0
  45. package/obj/imports/wasi-io-streams.d.ts +18 -0
  46. package/obj/imports/wasi-random-random.d.ts +3 -0
  47. package/obj/interfaces/wasi-cli-base-environment.d.ts +3 -0
  48. package/obj/interfaces/wasi-cli-base-exit.d.ts +4 -0
  49. package/obj/interfaces/wasi-cli-base-preopens.d.ts +5 -0
  50. package/obj/interfaces/wasi-cli-base-stderr.d.ts +5 -0
  51. package/obj/interfaces/wasi-cli-base-stdin.d.ts +5 -0
  52. package/obj/interfaces/wasi-cli-base-stdout.d.ts +5 -0
  53. package/obj/interfaces/wasi-clocks-wall-clock.d.ts +6 -0
  54. package/obj/interfaces/wasi-filesystem-filesystem.d.ts +152 -0
  55. package/obj/interfaces/wasi-io-streams.d.ts +21 -0
  56. package/obj/interfaces/wasi-random-random.d.ts +3 -0
  57. package/obj/js-component-bindgen-component.core.wasm +0 -0
  58. package/obj/js-component-bindgen-component.core2.wasm +0 -0
  59. package/obj/js-component-bindgen-component.d.ts +15 -10
  60. package/obj/js-component-bindgen-component.js +365 -117
  61. package/obj/wasm-tools.core.wasm +0 -0
  62. package/obj/wasm-tools.core2.wasm +0 -0
  63. package/obj/wasm-tools.d.ts +15 -10
  64. package/obj/wasm-tools.js +365 -117
  65. package/package.json +2 -2
  66. package/src/cmd/transpile.js +1 -1
  67. package/src/jco.js +1 -1
@@ -0,0 +1,3 @@
1
+ export namespace WasiCliBaseEnvironment {
2
+ export function getEnvironment(): [string, string][];
3
+ }
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliBaseExit {
2
+ export function exit(status: Result<void, void>): void;
3
+ }
4
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBasePreopens {
2
+ export function getDirectories(): [Descriptor, string][];
3
+ }
4
+ import type { Descriptor } from '../exports/wasi-filesystem-filesystem';
5
+ export { Descriptor };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStderr {
2
+ export function getStderr(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../exports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStdin {
2
+ export function getStdin(): InputStream;
3
+ }
4
+ import type { InputStream } from '../exports/wasi-io-streams';
5
+ export { InputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStdout {
2
+ export function getStdout(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../exports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,3 @@
1
+ export namespace WasiCliEnvironment {
2
+ export function getEnvironment(): [string, string][];
3
+ }
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliExit {
2
+ export function exit(status: Result<void, void>): void;
3
+ }
4
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStderr {
2
+ export function getStderr(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../exports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStdin {
2
+ export function getStdin(): InputStream;
3
+ }
4
+ import type { InputStream } from '../exports/wasi-io-streams';
5
+ export { InputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStdout {
2
+ export function getStdout(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../exports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliTerminalInput {
2
+ export function dropTerminalInput(this: TerminalInput): void;
3
+ }
4
+ export type TerminalInput = number;
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliTerminalOutput {
2
+ export function dropTerminalOutput(this: TerminalOutput): void;
3
+ }
4
+ export type TerminalOutput = number;
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStderr {
2
+ export function getTerminalStderr(): TerminalOutput | null;
3
+ }
4
+ import type { TerminalOutput } from '../exports/wasi-cli-terminal-output';
5
+ export { TerminalOutput };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStdin {
2
+ export function getTerminalStdin(): TerminalInput | null;
3
+ }
4
+ import type { TerminalInput } from '../exports/wasi-cli-terminal-input';
5
+ export { TerminalInput };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStdout {
2
+ export function getTerminalStdout(): TerminalOutput | null;
3
+ }
4
+ import type { TerminalOutput } from '../exports/wasi-cli-terminal-output';
5
+ export { TerminalOutput };
@@ -0,0 +1,6 @@
1
+ export namespace WasiClocksWallClock {
2
+ }
3
+ export interface Datetime {
4
+ seconds: bigint,
5
+ nanoseconds: number,
6
+ }
@@ -0,0 +1,152 @@
1
+ export namespace WasiFilesystemFilesystem {
2
+ export function readViaStream(this: Descriptor, offset: Filesize): InputStream;
3
+ export function writeViaStream(this: Descriptor, offset: Filesize): OutputStream;
4
+ export function appendViaStream(this: Descriptor): OutputStream;
5
+ export function getType(this: Descriptor): DescriptorType;
6
+ export function stat(this: Descriptor): DescriptorStat;
7
+ export function openAt(this: Descriptor, pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags, modes: Modes): Descriptor;
8
+ export function dropDescriptor(this: Descriptor): void;
9
+ export function dropDirectoryEntryStream(this: DirectoryEntryStream): void;
10
+ }
11
+ export type Descriptor = number;
12
+ export type Filesize = bigint;
13
+ import type { InputStream } from '../exports/wasi-io-streams';
14
+ export { InputStream };
15
+ /**
16
+ * # Variants
17
+ *
18
+ * ## `"access"`
19
+ *
20
+ * ## `"would-block"`
21
+ *
22
+ * ## `"already"`
23
+ *
24
+ * ## `"bad-descriptor"`
25
+ *
26
+ * ## `"busy"`
27
+ *
28
+ * ## `"deadlock"`
29
+ *
30
+ * ## `"quota"`
31
+ *
32
+ * ## `"exist"`
33
+ *
34
+ * ## `"file-too-large"`
35
+ *
36
+ * ## `"illegal-byte-sequence"`
37
+ *
38
+ * ## `"in-progress"`
39
+ *
40
+ * ## `"interrupted"`
41
+ *
42
+ * ## `"invalid"`
43
+ *
44
+ * ## `"io"`
45
+ *
46
+ * ## `"is-directory"`
47
+ *
48
+ * ## `"loop"`
49
+ *
50
+ * ## `"too-many-links"`
51
+ *
52
+ * ## `"message-size"`
53
+ *
54
+ * ## `"name-too-long"`
55
+ *
56
+ * ## `"no-device"`
57
+ *
58
+ * ## `"no-entry"`
59
+ *
60
+ * ## `"no-lock"`
61
+ *
62
+ * ## `"insufficient-memory"`
63
+ *
64
+ * ## `"insufficient-space"`
65
+ *
66
+ * ## `"not-directory"`
67
+ *
68
+ * ## `"not-empty"`
69
+ *
70
+ * ## `"not-recoverable"`
71
+ *
72
+ * ## `"unsupported"`
73
+ *
74
+ * ## `"no-tty"`
75
+ *
76
+ * ## `"no-such-device"`
77
+ *
78
+ * ## `"overflow"`
79
+ *
80
+ * ## `"not-permitted"`
81
+ *
82
+ * ## `"pipe"`
83
+ *
84
+ * ## `"read-only"`
85
+ *
86
+ * ## `"invalid-seek"`
87
+ *
88
+ * ## `"text-file-busy"`
89
+ *
90
+ * ## `"cross-device"`
91
+ */
92
+ export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
93
+ import type { OutputStream } from '../exports/wasi-io-streams';
94
+ export { OutputStream };
95
+ /**
96
+ * # Variants
97
+ *
98
+ * ## `"unknown"`
99
+ *
100
+ * ## `"block-device"`
101
+ *
102
+ * ## `"character-device"`
103
+ *
104
+ * ## `"directory"`
105
+ *
106
+ * ## `"fifo"`
107
+ *
108
+ * ## `"symbolic-link"`
109
+ *
110
+ * ## `"regular-file"`
111
+ *
112
+ * ## `"socket"`
113
+ */
114
+ export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
115
+ export type Device = bigint;
116
+ export type Inode = bigint;
117
+ export type LinkCount = bigint;
118
+ import type { Datetime } from '../exports/wasi-clocks-wall-clock';
119
+ export { Datetime };
120
+ export interface DescriptorStat {
121
+ device: Device,
122
+ inode: Inode,
123
+ type: DescriptorType,
124
+ linkCount: LinkCount,
125
+ size: Filesize,
126
+ dataAccessTimestamp: Datetime,
127
+ dataModificationTimestamp: Datetime,
128
+ statusChangeTimestamp: Datetime,
129
+ }
130
+ export interface PathFlags {
131
+ symlinkFollow?: boolean,
132
+ }
133
+ export interface OpenFlags {
134
+ create?: boolean,
135
+ directory?: boolean,
136
+ exclusive?: boolean,
137
+ truncate?: boolean,
138
+ }
139
+ export interface DescriptorFlags {
140
+ read?: boolean,
141
+ write?: boolean,
142
+ fileIntegritySync?: boolean,
143
+ dataIntegritySync?: boolean,
144
+ requestedWriteSync?: boolean,
145
+ mutateDirectory?: boolean,
146
+ }
147
+ export interface Modes {
148
+ readable?: boolean,
149
+ writable?: boolean,
150
+ executable?: boolean,
151
+ }
152
+ export type DirectoryEntryStream = number;
@@ -0,0 +1,5 @@
1
+ export namespace WasiFilesystemPreopens {
2
+ export function getDirectories(): [Descriptor, string][];
3
+ }
4
+ import type { Descriptor } from '../exports/wasi-filesystem-types';
5
+ export { Descriptor };
@@ -0,0 +1,153 @@
1
+ export namespace WasiFilesystemTypes {
2
+ export function readViaStream(this: Descriptor, offset: Filesize): InputStream;
3
+ export function writeViaStream(this: Descriptor, offset: Filesize): OutputStream;
4
+ export function appendViaStream(this: Descriptor): OutputStream;
5
+ export function getType(this: Descriptor): DescriptorType;
6
+ export function stat(this: Descriptor): DescriptorStat;
7
+ export function openAt(this: Descriptor, pathFlags: PathFlags, path: string, openFlags: OpenFlags, flags: DescriptorFlags, modes: Modes): Descriptor;
8
+ export function dropDescriptor(this: Descriptor): void;
9
+ export function dropDirectoryEntryStream(this: DirectoryEntryStream): void;
10
+ export function metadataHash(this: Descriptor): MetadataHashValue;
11
+ }
12
+ export type Descriptor = number;
13
+ export type Filesize = bigint;
14
+ import type { InputStream } from '../exports/wasi-io-streams';
15
+ export { InputStream };
16
+ /**
17
+ * # Variants
18
+ *
19
+ * ## `"access"`
20
+ *
21
+ * ## `"would-block"`
22
+ *
23
+ * ## `"already"`
24
+ *
25
+ * ## `"bad-descriptor"`
26
+ *
27
+ * ## `"busy"`
28
+ *
29
+ * ## `"deadlock"`
30
+ *
31
+ * ## `"quota"`
32
+ *
33
+ * ## `"exist"`
34
+ *
35
+ * ## `"file-too-large"`
36
+ *
37
+ * ## `"illegal-byte-sequence"`
38
+ *
39
+ * ## `"in-progress"`
40
+ *
41
+ * ## `"interrupted"`
42
+ *
43
+ * ## `"invalid"`
44
+ *
45
+ * ## `"io"`
46
+ *
47
+ * ## `"is-directory"`
48
+ *
49
+ * ## `"loop"`
50
+ *
51
+ * ## `"too-many-links"`
52
+ *
53
+ * ## `"message-size"`
54
+ *
55
+ * ## `"name-too-long"`
56
+ *
57
+ * ## `"no-device"`
58
+ *
59
+ * ## `"no-entry"`
60
+ *
61
+ * ## `"no-lock"`
62
+ *
63
+ * ## `"insufficient-memory"`
64
+ *
65
+ * ## `"insufficient-space"`
66
+ *
67
+ * ## `"not-directory"`
68
+ *
69
+ * ## `"not-empty"`
70
+ *
71
+ * ## `"not-recoverable"`
72
+ *
73
+ * ## `"unsupported"`
74
+ *
75
+ * ## `"no-tty"`
76
+ *
77
+ * ## `"no-such-device"`
78
+ *
79
+ * ## `"overflow"`
80
+ *
81
+ * ## `"not-permitted"`
82
+ *
83
+ * ## `"pipe"`
84
+ *
85
+ * ## `"read-only"`
86
+ *
87
+ * ## `"invalid-seek"`
88
+ *
89
+ * ## `"text-file-busy"`
90
+ *
91
+ * ## `"cross-device"`
92
+ */
93
+ export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device';
94
+ import type { OutputStream } from '../exports/wasi-io-streams';
95
+ export { OutputStream };
96
+ /**
97
+ * # Variants
98
+ *
99
+ * ## `"unknown"`
100
+ *
101
+ * ## `"block-device"`
102
+ *
103
+ * ## `"character-device"`
104
+ *
105
+ * ## `"directory"`
106
+ *
107
+ * ## `"fifo"`
108
+ *
109
+ * ## `"symbolic-link"`
110
+ *
111
+ * ## `"regular-file"`
112
+ *
113
+ * ## `"socket"`
114
+ */
115
+ export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket';
116
+ export type LinkCount = bigint;
117
+ import type { Datetime } from '../exports/wasi-clocks-wall-clock';
118
+ export { Datetime };
119
+ export interface DescriptorStat {
120
+ type: DescriptorType,
121
+ linkCount: LinkCount,
122
+ size: Filesize,
123
+ dataAccessTimestamp: Datetime,
124
+ dataModificationTimestamp: Datetime,
125
+ statusChangeTimestamp: Datetime,
126
+ }
127
+ export interface PathFlags {
128
+ symlinkFollow?: boolean,
129
+ }
130
+ export interface OpenFlags {
131
+ create?: boolean,
132
+ directory?: boolean,
133
+ exclusive?: boolean,
134
+ truncate?: boolean,
135
+ }
136
+ export interface DescriptorFlags {
137
+ read?: boolean,
138
+ write?: boolean,
139
+ fileIntegritySync?: boolean,
140
+ dataIntegritySync?: boolean,
141
+ requestedWriteSync?: boolean,
142
+ mutateDirectory?: boolean,
143
+ }
144
+ export interface Modes {
145
+ readable?: boolean,
146
+ writable?: boolean,
147
+ executable?: boolean,
148
+ }
149
+ export type DirectoryEntryStream = number;
150
+ export interface MetadataHashValue {
151
+ lower: bigint,
152
+ upper: bigint,
153
+ }
@@ -0,0 +1,18 @@
1
+ export namespace WasiIoStreams {
2
+ export function read(this: InputStream, len: bigint): [Uint8Array, StreamStatus];
3
+ export function blockingRead(this: InputStream, len: bigint): [Uint8Array, StreamStatus];
4
+ export function dropInputStream(this: InputStream): void;
5
+ export function write(this: OutputStream, buf: Uint8Array | ArrayBuffer): [bigint, StreamStatus];
6
+ export function blockingWrite(this: OutputStream, buf: Uint8Array | ArrayBuffer): [bigint, StreamStatus];
7
+ export function dropOutputStream(this: OutputStream): void;
8
+ }
9
+ export type InputStream = number;
10
+ /**
11
+ * # Variants
12
+ *
13
+ * ## `"open"`
14
+ *
15
+ * ## `"ended"`
16
+ */
17
+ export type StreamStatus = 'open' | 'ended';
18
+ export type OutputStream = number;
@@ -0,0 +1,3 @@
1
+ export namespace WasiRandomRandom {
2
+ export function getRandomBytes(len: bigint): Uint8Array;
3
+ }
@@ -0,0 +1,3 @@
1
+ export namespace WasiCliBaseEnvironment1 {
2
+ export function getEnvironment(): [string, string][];
3
+ }
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliBaseExit1 {
2
+ export function exit(status: Result<void, void>): void;
3
+ }
4
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBasePreopens1 {
2
+ export function getDirectories(): [Descriptor, string][];
3
+ }
4
+ import type { Descriptor } from '../imports/wasi-filesystem-filesystem';
5
+ export { Descriptor };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStderr1 {
2
+ export function getStderr(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../imports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStdin1 {
2
+ export function getStdin(): InputStream;
3
+ }
4
+ import type { InputStream } from '../imports/wasi-io-streams';
5
+ export { InputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliBaseStdout1 {
2
+ export function getStdout(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../imports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,3 @@
1
+ export namespace WasiCliEnvironment1 {
2
+ export function getEnvironment(): [string, string][];
3
+ }
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliExit1 {
2
+ export function exit(status: Result<void, void>): void;
3
+ }
4
+ export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStderr1 {
2
+ export function getStderr(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../imports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStdin1 {
2
+ export function getStdin(): InputStream;
3
+ }
4
+ import type { InputStream } from '../imports/wasi-io-streams';
5
+ export { InputStream };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliStdout1 {
2
+ export function getStdout(): OutputStream;
3
+ }
4
+ import type { OutputStream } from '../imports/wasi-io-streams';
5
+ export { OutputStream };
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliTerminalInput1 {
2
+ export function dropTerminalInput(this: TerminalInput): void;
3
+ }
4
+ export type TerminalInput = number;
@@ -0,0 +1,4 @@
1
+ export namespace WasiCliTerminalOutput1 {
2
+ export function dropTerminalOutput(this: TerminalOutput): void;
3
+ }
4
+ export type TerminalOutput = number;
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStderr1 {
2
+ export function getTerminalStderr(): TerminalOutput | null;
3
+ }
4
+ import type { TerminalOutput } from '../imports/wasi-cli-terminal-output';
5
+ export { TerminalOutput };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStdin1 {
2
+ export function getTerminalStdin(): TerminalInput | null;
3
+ }
4
+ import type { TerminalInput } from '../imports/wasi-cli-terminal-input';
5
+ export { TerminalInput };
@@ -0,0 +1,5 @@
1
+ export namespace WasiCliTerminalStdout1 {
2
+ export function getTerminalStdout(): TerminalOutput | null;
3
+ }
4
+ import type { TerminalOutput } from '../imports/wasi-cli-terminal-output';
5
+ export { TerminalOutput };
@@ -0,0 +1,6 @@
1
+ export namespace WasiClocksWallClock1 {
2
+ }
3
+ export interface Datetime {
4
+ seconds: bigint,
5
+ nanoseconds: number,
6
+ }