export declare const FD_STDIN = 0; export declare const FD_STDOUT = 1; export declare const FD_STDERR = 2; export declare const CLOCKID_REALTIME = 0; export declare const CLOCKID_MONOTONIC = 1; export declare const CLOCKID_PROCESS_CPUTIME_ID = 2; export declare const CLOCKID_THREAD_CPUTIME_ID = 3; export declare const ERRNO_SUCCESS = 0; export declare const ERRNO_2BIG = 1; export declare const ERRNO_ACCES = 2; export declare const ERRNO_ADDRINUSE = 3; export declare const ERRNO_ADDRNOTAVAIL = 4; export declare const ERRNO_AFNOSUPPORT = 5; export declare const ERRNO_AGAIN = 6; export declare const ERRNO_ALREADY = 7; export declare const ERRNO_BADF = 8; export declare const ERRNO_BADMSG = 9; export declare const ERRNO_BUSY = 10; export declare const ERRNO_CANCELED = 11; export declare const ERRNO_CHILD = 12; export declare const ERRNO_CONNABORTED = 13; export declare const ERRNO_CONNREFUSED = 14; export declare const ERRNO_CONNRESET = 15; export declare const ERRNO_DEADLK = 16; export declare const ERRNO_DESTADDRREQ = 17; export declare const ERRNO_DOM = 18; export declare const ERRNO_DQUOT = 19; export declare const ERRNO_EXIST = 20; export declare const ERRNO_FAULT = 21; export declare const ERRNO_FBIG = 22; export declare const ERRNO_HOSTUNREACH = 23; export declare const ERRNO_IDRM = 24; export declare const ERRNO_ILSEQ = 25; export declare const ERRNO_INPROGRESS = 26; export declare const ERRNO_INTR = 27; export declare const ERRNO_INVAL = 28; export declare const ERRNO_IO = 29; export declare const ERRNO_ISCONN = 30; export declare const ERRNO_ISDIR = 31; export declare const ERRNO_LOOP = 32; export declare const ERRNO_MFILE = 33; export declare const ERRNO_MLINK = 34; export declare const ERRNO_MSGSIZE = 35; export declare const ERRNO_MULTIHOP = 36; export declare const ERRNO_NAMETOOLONG = 37; export declare const ERRNO_NETDOWN = 38; export declare const ERRNO_NETRESET = 39; export declare const ERRNO_NETUNREACH = 40; export declare const ERRNO_NFILE = 41; export declare const ERRNO_NOBUFS = 42; export declare const ERRNO_NODEV = 43; export declare const ERRNO_NOENT = 44; export declare const ERRNO_NOEXEC = 45; export declare const ERRNO_NOLCK = 46; export declare const ERRNO_NOLINK = 47; export declare const ERRNO_NOMEM = 48; export declare const ERRNO_NOMSG = 49; export declare const ERRNO_NOPROTOOPT = 50; export declare const ERRNO_NOSPC = 51; export declare const ERRNO_NOSYS = 52; export declare const ERRNO_NOTCONN = 53; export declare const ERRNO_NOTDIR = 54; export declare const ERRNO_NOTEMPTY = 55; export declare const ERRNO_NOTRECOVERABLE = 56; export declare const ERRNO_NOTSOCK = 57; export declare const ERRNO_NOTSUP = 58; export declare const ERRNO_NOTTY = 59; export declare const ERRNO_NXIO = 60; export declare const ERRNO_OVERFLOW = 61; export declare const ERRNO_OWNERDEAD = 62; export declare const ERRNO_PERM = 63; export declare const ERRNO_PIPE = 64; export declare const ERRNO_PROTO = 65; export declare const ERRNO_PROTONOSUPPORT = 66; export declare const ERRNO_PROTOTYPE = 67; export declare const ERRNO_RANGE = 68; export declare const ERRNO_ROFS = 69; export declare const ERRNO_SPIPE = 70; export declare const ERRNO_SRCH = 71; export declare const ERRNO_STALE = 72; export declare const ERRNO_TIMEDOUT = 73; export declare const ERRNO_TXTBSY = 74; export declare const ERRNO_XDEV = 75; export declare const ERRNO_NOTCAPABLE = 76; export declare const RIGHTS_FD_DATASYNC: number; export declare const RIGHTS_FD_READ: number; export declare const RIGHTS_FD_SEEK: number; export declare const RIGHTS_FD_FDSTAT_SET_FLAGS: number; export declare const RIGHTS_FD_SYNC: number; export declare const RIGHTS_FD_TELL: number; export declare const RIGHTS_FD_WRITE: number; export declare const RIGHTS_FD_ADVISE: number; export declare const RIGHTS_FD_ALLOCATE: number; export declare const RIGHTS_PATH_CREATE_DIRECTORY: number; export declare const RIGHTS_PATH_CREATE_FILE: number; export declare const RIGHTS_PATH_LINK_SOURCE: number; export declare const RIGHTS_PATH_LINK_TARGET: number; export declare const RIGHTS_PATH_OPEN: number; export declare const RIGHTS_FD_READDIR: number; export declare const RIGHTS_PATH_READLINK: number; export declare const RIGHTS_PATH_RENAME_SOURCE: number; export declare const RIGHTS_PATH_RENAME_TARGET: number; export declare const RIGHTS_PATH_FILESTAT_GET: number; export declare const RIGHTS_PATH_FILESTAT_SET_SIZE: number; export declare const RIGHTS_PATH_FILESTAT_SET_TIMES: number; export declare const RIGHTS_FD_FILESTAT_GET: number; export declare const RIGHTS_FD_FILESTAT_SET_SIZE: number; export declare const RIGHTS_FD_FILESTAT_SET_TIMES: number; export declare const RIGHTS_PATH_SYMLINK: number; export declare const RIGHTS_PATH_REMOVE_DIRECTORY: number; export declare const RIGHTS_PATH_UNLINK_FILE: number; export declare const RIGHTS_POLL_FD_READWRITE: number; export declare const RIGHTS_SOCK_SHUTDOWN: number; export declare class Iovec { buf: number; buf_len: number; static read_bytes(view: DataView, ptr: number): Iovec; static read_bytes_array(view: DataView, ptr: number, len: number): Iovec[]; } export declare class Ciovec { buf: number; buf_len: number; static read_bytes(view: DataView, ptr: number): Ciovec; static read_bytes_array(view: DataView, ptr: number, len: number): Array; } export declare const WHENCE_SET = 0; export declare const WHENCE_CUR = 1; export declare const WHENCE_END = 2; export declare const FILETYPE_UNKNOWN = 0; export declare const FILETYPE_BLOCK_DEVICE = 1; export declare const FILETYPE_CHARACTER_DEVICE = 2; export declare const FILETYPE_DIRECTORY = 3; export declare const FILETYPE_REGULAR_FILE = 4; export declare const FILETYPE_SOCKET_DGRAM = 5; export declare const FILETYPE_SOCKET_STREAM = 6; export declare const FILETYPE_SYMBOLIC_LINK = 7; export declare class Dirent { d_next: bigint; d_ino: bigint; d_namlen: number; d_type: number; dir_name: Uint8Array; constructor(next_cookie: bigint, name: string, type: number); head_length(): number; name_length(): number; write_head_bytes(view: DataView, ptr: number): void; write_name_bytes(view8: Uint8Array, ptr: number, buf_len: number): void; } export declare const ADVICE_NORMAL = 0; export declare const ADVICE_SEQUENTIAL = 1; export declare const ADVICE_RANDOM = 2; export declare const ADVICE_WILLNEED = 3; export declare const ADVICE_DONTNEED = 4; export declare const ADVICE_NOREUSE = 5; export declare const FDFLAGS_APPEND: number; export declare const FDFLAGS_DSYNC: number; export declare const FDFLAGS_NONBLOCK: number; export declare const FDFLAGS_RSYNC: number; export declare const FDFLAGS_SYNC: number; export declare class Fdstat { fs_filetype: number; fs_flags: number; fs_rights_base: bigint; fs_rights_inherited: bigint; constructor(filetype: number, flags: number, fs_rights_base?: bigint); write_bytes(view: DataView, ptr: number): void; } export declare const FSTFLAGS_ATIM: number; export declare const FSTFLAGS_ATIM_NOW: number; export declare const FSTFLAGS_MTIM: number; export declare const FSTFLAGS_MTIM_NOW: number; export declare const OFLAGS_CREAT: number; export declare const OFLAGS_DIRECTORY: number; export declare const OFLAGS_EXCL: number; export declare const OFLAGS_TRUNC: number; export declare class Filestat { dev: bigint; ino: bigint; filetype: number; nlink: bigint; size: bigint; atim: bigint; mtim: bigint; ctim: bigint; constructor(filetype: number, size: bigint); write_bytes(view: DataView, ptr: number): void; } export declare const EVENTTYPE_CLOCK = 0; export declare const EVENTTYPE_FD_READ = 1; export declare const EVENTTYPE_FD_WRITE = 2; export declare const EVENTRWFLAGS_FD_READWRITE_HANGUP: number; export declare const SUBCLOCKFLAGS_SUBSCRIPTION_CLOCK_ABSTIME: number; export declare const SIGNAL_NONE = 0; export declare const SIGNAL_HUP = 1; export declare const SIGNAL_INT = 2; export declare const SIGNAL_QUIT = 3; export declare const SIGNAL_ILL = 4; export declare const SIGNAL_TRAP = 5; export declare const SIGNAL_ABRT = 6; export declare const SIGNAL_BUS = 7; export declare const SIGNAL_FPE = 8; export declare const SIGNAL_KILL = 9; export declare const SIGNAL_USR1 = 10; export declare const SIGNAL_SEGV = 11; export declare const SIGNAL_USR2 = 12; export declare const SIGNAL_PIPE = 13; export declare const SIGNAL_ALRM = 14; export declare const SIGNAL_TERM = 15; export declare const SIGNAL_CHLD = 16; export declare const SIGNAL_CONT = 17; export declare const SIGNAL_STOP = 18; export declare const SIGNAL_TSTP = 19; export declare const SIGNAL_TTIN = 20; export declare const SIGNAL_TTOU = 21; export declare const SIGNAL_URG = 22; export declare const SIGNAL_XCPU = 23; export declare const SIGNAL_XFSZ = 24; export declare const SIGNAL_VTALRM = 25; export declare const SIGNAL_PROF = 26; export declare const SIGNAL_WINCH = 27; export declare const SIGNAL_POLL = 28; export declare const SIGNAL_PWR = 29; export declare const SIGNAL_SYS = 30; export declare const RIFLAGS_RECV_PEEK: number; export declare const RIFLAGS_RECV_WAITALL: number; export declare const ROFLAGS_RECV_DATA_TRUNCATED: number; export declare const SDFLAGS_RD: number; export declare const SDFLAGS_WR: number; export declare const PREOPENTYPE_DIR = 0; export declare class PrestatDir { pr_name_len: number; constructor(name_len: number); write_bytes(view: DataView, ptr: number): void; } export declare class Prestat { tag: number; inner: PrestatDir; static dir(name_len: number): Prestat; write_bytes(view: DataView, ptr: number): void; } export interface WasiPreview1 { args_sizes_get(argc: number, argv_buf_size: number): number; args_get(argv: number, argv_buf: number): number; environ_sizes_get(environ_count: number, environ_size: number): number; environ_get(environ: number, environ_buf: number): number; clock_res_get(id: number, res_ptr: number): number; clock_time_get(id: number, precision: bigint, time: number): number; fd_advise(fd: number, offset: bigint, len: bigint, advice: number): number; fd_allocate(fd: number, offset: bigint, len: bigint): number; fd_close(fd: number): number; fd_datasync(fd: number): number; fd_fdstat_get(fd: number, fdstat_ptr: number): number; fd_fdstat_set_flags(fd: number, flags: number): number; fd_fdstat_set_rights(fd: number, fs_rights_base: bigint, fs_rights_inheriting: bigint): number; fd_filestat_get(fd: number, filestat_ptr: number): number; fd_filestat_set_size(fd: number, size: bigint): number; fd_filestat_set_times(fd: number, atim: bigint, mtim: bigint, fst_flags: number): number; fd_pread(fd: number, iovs_ptr: number, iovs_len: number, offset: bigint, nread_ptr: number): number; fd_prestat_get(fd: number, buf_ptr: number): number; fd_prestat_dir_name(fd: number, path_ptr: number, path_len: number): number; fd_pwrite(fd: number, iovs_ptr: number, iovs_len: number, offset: bigint, nwritten_ptr: number): number; fd_read(fd: number, iovs_ptr: number, iovs_len: number, nread_ptr: number): number; fd_readdir(fd: number, buf: number, buf_len: number, cookie: bigint, bufused_ptr: number): number; fd_renumber(fd: number, to: number): any; fd_seek(fd: number, offset: bigint, whence: number, offset_out_ptr: number): number; fd_sync(fd: number): number; fd_tell(fd: number, offset_ptr: number): number; fd_write(fd: number, iovs_ptr: number, iovs_len: number, nwritten_ptr: number): number; path_create_directory(fd: number, path_ptr: number, path_len: number): number; path_filestat_get(fd: number, flags: number, path_ptr: number, path_len: number, filestat_ptr: number): number; path_filestat_set_times(fd: number, flags: number, path_ptr: number, path_len: number, atim: any, mtim: any, fst_flags: any): any; path_link(old_fd: number, old_flags: any, old_path_ptr: number, old_path_len: number, new_fd: number, new_path_ptr: number, new_path_len: number): number; path_open(fd: number, dirflags: any, path_ptr: number, path_len: number, oflags: any, fs_rights_base: any, fs_rights_inheriting: any, fd_flags: any, opened_fd_ptr: number): number; path_readlink(fd: number, path_ptr: number, path_len: number, buf_ptr: number, buf_len: number, nread_ptr: number): number; path_remove_directory(fd: number, path_ptr: number, path_len: number): number; path_rename(fd: number, old_path_ptr: number, old_path_len: number, new_fd: number, new_path_ptr: number, new_path_len: number): number; path_symlink(old_path_ptr: number, old_path_len: number, fd: number, new_path_ptr: number, new_path_len: number): number; path_unlink_file(fd: number, path_ptr: number, path_len: number): number; poll_oneoff(in_: any, out: any, nsubscriptions: any): any; proc_exit(exit_code: number): any; proc_raise(sig: number): any; sched_yield(): any; random_get(buf: number, buf_len: number): any; sock_recv(fd: number, ri_data: any, ri_flags: any): any; sock_send(fd: number, si_data: any, si_flags: any): any; sock_shutdown(fd: number, how: any): any; sock_accept(fd: number, flags: any): any; }