char/avril
(wip) why'd you have to go and make things so complicaaaaated?
git clone https://git.t4t.associates/char/avril
dea05b4
main
1declare module"ext:core/ops" { 2type FileReply < T > = import ( "./errors.ts" ). FileReply < T > ; 3type Reply < T > = FileReply < T >; 4export type Metadata = [ 5boolean , 6boolean , 7boolean , 8number , 9number | null , 10number | null , 11number | null , 12number | null , 13number | null , 14number | null , 15]; 16export type Entry = [ string , boolean , boolean , boolean ]; 17export type WatchEvent = [ kind : 0 | 1 | 2 | 3 | 4 , paths : string []]; 18export type CopyInfo = 19| [ kind : 0 , mode : number | null , identity : null , source : string ] 20| [ kind : 1 , mode : number | null , identity : string , source : string ] 21| [ kind : 2 , mode : number | null , identity : null , source : string ]; 22export const op_file_chmod : ( args : [ string , number ]) => Promise < Reply < null >>; 23export const op_file_chmod_sync : ( args : [ string , number ]) => Reply < null >; 24export const op_file_chown : ( args : [ string , number | null , number | null ]) => Promise < Reply < null >>; 25export const op_file_chown_sync : ( args : [ string , number | null , number | null ]) => Reply < null >; 26export const op_file_close : ( args : [ number , boolean ]) => Reply < boolean >; 27export const op_file_copy : ( args : [ string , string ]) => Promise < Reply < null >>; 28export const op_file_copy_sync : ( args : [ string , string ]) => Reply < null >; 29export const op_file_copy_dir_mode : ( args : [ string , number | null ]) => Promise < Reply < null >>; 30export const op_file_copy_dir_mode_sync : ( args : [ string , number | null ]) => Reply < null >; 31export const op_file_copy_link : ( args : [ string , string ]) => Promise < Reply < null >>; 32export const op_file_copy_link_sync : ( args : [ string , string ]) => Reply < null >; 33export const op_file_ensure_dir : ( args : [ string , number | null ]) => Promise < Reply < null >>; 34export const op_file_ensure_dir_sync : ( args : [ string , number | null ]) => Reply < null >; 35export const op_file_fchmod : ( args : [ number , number ]) => Promise < Reply < null >>; 36export const op_file_fchmod_sync : ( args : [ number , number ]) => Reply < null >; 37export const op_file_fchown : ( args : [ number , number | null , number | null ]) => Promise < Reply < null >>; 38export const op_file_fchown_sync : ( args : [ number , number | null , number | null ]) => Reply < null >; 39export const op_file_flock : ( args : [ number , boolean ]) => Promise < Reply < null >>; 40export const op_file_flock_sync : ( args : [ number , boolean ]) => Reply < null >; 41export const op_file_funlock : ( id : number ) => Promise < Reply < null >>; 42export const op_file_funlock_sync : ( id : number ) => Reply < null >; 43export const op_file_futime : ( args : [ number , number , number , number , number ]) => Promise < Reply < null >>; 44export const op_file_futime_sync : ( args : [ number , number , number , number , number ]) => Reply < null >; 45export const op_file_link : ( args : [ string , string ]) => Promise < Reply < null >>; 46export const op_file_link_sync : ( args : [ string , string ]) => Reply < null >; 47export const op_file_lchown : ( args : [ string , number | null , number | null ]) => Promise < Reply < null >>; 48export const op_file_lchown_sync : ( args : [ string , number | null , number | null ]) => Reply < null >; 49export const op_file_lutime : ( args : [ string , number , number , number , number ]) => Promise < Reply < null >>; 50export const op_file_lutime_sync : ( args : [ string , number , number , number , number ]) => Reply < null >; 51export const op_file_mkdir : ( args : [ string , number | null ]) => Promise < Reply < null >>; 52export const op_file_mkdir_sync : ( args : [ string , number | null ]) => Reply < null >; 53export const op_file_open : ( 54args : [ string , [ boolean , boolean , boolean , boolean , boolean , boolean , number | null ]], 55) => Promise < Reply < number >>; 56export const op_file_open_sync : ( 57args : [ string , [ boolean , boolean , boolean , boolean , boolean , boolean , number | null ]], 58) => Reply < number >; 59export const op_file_path_join : ( args : [ string , string ]) => Reply < string >; 60export const op_file_path_parent : ( path : string ) => Reply < string >; 61export const op_file_path_stat : ( args : [ string , boolean ]) => Promise < Reply < Metadata >>; 62export const op_file_path_stat_sync : ( args : [ string , boolean ]) => Reply < Metadata >; 63export const op_file_path_truncate : ( args : [ string , number ]) => Promise < Reply < null >>; 64export const op_file_path_truncate_sync : ( args : [ string , number ]) => Reply < null >; 65export const op_file_prepare_copy : ( args : [ string , string , boolean , boolean ]) => Promise < Reply < CopyInfo >>; 66export const op_file_prepare_copy_sync : ( args : [ string , string , boolean , boolean ]) => Reply < CopyInfo >; 67export const op_file_read : ( args : [ number , number ]) => Promise < Reply < Uint8Array < ArrayBuffer > | null >>; 68export const op_file_read_sync : ( args : [ number , number ]) => Reply < Uint8Array < ArrayBuffer > | null >; 69export const op_file_read_dir : ( path : string ) => Promise < Reply < Entry []>>; 70export const op_file_read_dir_sync : ( path : string ) => Reply < Entry []>; 71export const op_file_read_link : ( path : string ) => Promise < Reply < string >>; 72export const op_file_read_link_sync : ( path : string ) => Reply < string >; 73export const op_file_read_tree_dir : ( path : string ) => Promise < Reply < string []>>; 74export const op_file_read_tree_dir_sync : ( path : string ) => Reply < string []>; 75export const op_file_real_path : ( path : string ) => Promise < Reply < string >>; 76export const op_file_real_path_sync : ( path : string ) => Reply < string >; 77export const op_file_remove : ( args : [ string , boolean ]) => Promise < Reply < null >>; 78export const op_file_remove_sync : ( args : [ string , boolean ]) => Reply < null >; 79export const op_file_rename : ( args : [ string , string ]) => Promise < Reply < null >>; 80export const op_file_rename_sync : ( args : [ string , string ]) => Reply < null >; 81export const op_file_seek : ( args : [ number , number , number ]) => Promise < Reply < number >>; 82export const op_file_seek_sync : ( args : [ number , number , number ]) => Reply < number >; 83export const op_file_stat : ( id : number ) => Promise < Reply < Metadata >>; 84export const op_file_stat_sync : ( id : number ) => Reply < Metadata >; 85export const op_file_symlink : ( args : [ string , string , "file" | "dir" | null ]) => Promise < Reply < null >>; 86export const op_file_symlink_sync : ( args : [ string , string , "file" | "dir" | null ]) => Reply < null >; 87export const op_file_sync : ( args : [ number , boolean ]) => Promise < Reply < null >>; 88export const op_file_sync_sync : ( args : [ number , boolean ]) => Reply < null >; 89export const op_file_tmp_dir : () => Reply < string >; 90export const op_file_truncate : ( args : [ number , number ]) => Promise < Reply < null >>; 91export const op_file_truncate_sync : ( args : [ number , number ]) => Reply < null >; 92export const op_file_url_path : ( url : string ) => Reply < string >; 93export const op_file_utime : ( args : [ string , number , number , number , number ]) => Promise < Reply < null >>; 94export const op_file_utime_sync : ( args : [ string , number , number , number , number ]) => Reply < null >; 95export const op_file_watch : ( args : [ string [], boolean ]) => Reply < number >; 96export const op_file_watch_close : ( args : [ number , boolean ]) => Reply < boolean >; 97export const op_file_watch_keepalive : ( args : [ number , number ]) => Promise < Reply < boolean >>; 98export const op_file_watch_next : ( id : number ) => Promise < Reply < WatchEvent | null >>; 99export const op_file_watch_next_unref : ( id : number ) => Promise < Reply < WatchEvent | null >>; 100export const op_file_watch_ref : ( id : number ) => Reply < number >; 101export const op_file_write : ( args : [ number , Uint8Array < ArrayBuffer >]) => Promise < Reply < number >>; 102export const op_file_write_sync : ( args : [ number , Uint8Array < ArrayBuffer >]) => Reply < number >; 103export const op_file_writev : ( args : [ number , Uint8Array < ArrayBuffer >[]]) => Promise < Reply < number >>; 104export const op_file_writev_sync : ( args : [ number , Uint8Array < ArrayBuffer >[]]) => Reply < number >; 105}