declare module "ext:core/ops" { type FileReply = import("./errors.ts").FileReply; type Reply = FileReply; export type Metadata = [ boolean, boolean, boolean, number, number | null, number | null, number | null, number | null, number | null, number | null, ]; export type Entry = [string, boolean, boolean, boolean]; export type WatchEvent = [kind: 0 | 1 | 2 | 3 | 4, paths: string[]]; export type CopyInfo = | [kind: 0, mode: number | null, identity: null, source: string] | [kind: 1, mode: number | null, identity: string, source: string] | [kind: 2, mode: number | null, identity: null, source: string]; export const op_file_chmod: (args: [string, number]) => Promise>; export const op_file_chmod_sync: (args: [string, number]) => Reply; export const op_file_chown: (args: [string, number | null, number | null]) => Promise>; export const op_file_chown_sync: (args: [string, number | null, number | null]) => Reply; export const op_file_close: (args: [number, boolean]) => Reply; export const op_file_copy: (args: [string, string]) => Promise>; export const op_file_copy_sync: (args: [string, string]) => Reply; export const op_file_copy_dir_mode: (args: [string, number | null]) => Promise>; export const op_file_copy_dir_mode_sync: (args: [string, number | null]) => Reply; export const op_file_copy_link: (args: [string, string]) => Promise>; export const op_file_copy_link_sync: (args: [string, string]) => Reply; export const op_file_ensure_dir: (args: [string, number | null]) => Promise>; export const op_file_ensure_dir_sync: (args: [string, number | null]) => Reply; export const op_file_fchmod: (args: [number, number]) => Promise>; export const op_file_fchmod_sync: (args: [number, number]) => Reply; export const op_file_fchown: (args: [number, number | null, number | null]) => Promise>; export const op_file_fchown_sync: (args: [number, number | null, number | null]) => Reply; export const op_file_flock: (args: [number, boolean]) => Promise>; export const op_file_flock_sync: (args: [number, boolean]) => Reply; export const op_file_funlock: (id: number) => Promise>; export const op_file_funlock_sync: (id: number) => Reply; export const op_file_futime: (args: [number, number, number, number, number]) => Promise>; export const op_file_futime_sync: (args: [number, number, number, number, number]) => Reply; export const op_file_link: (args: [string, string]) => Promise>; export const op_file_link_sync: (args: [string, string]) => Reply; export const op_file_lchown: (args: [string, number | null, number | null]) => Promise>; export const op_file_lchown_sync: (args: [string, number | null, number | null]) => Reply; export const op_file_lutime: (args: [string, number, number, number, number]) => Promise>; export const op_file_lutime_sync: (args: [string, number, number, number, number]) => Reply; export const op_file_mkdir: (args: [string, number | null]) => Promise>; export const op_file_mkdir_sync: (args: [string, number | null]) => Reply; export const op_file_open: ( args: [string, [boolean, boolean, boolean, boolean, boolean, boolean, number | null]], ) => Promise>; export const op_file_open_sync: ( args: [string, [boolean, boolean, boolean, boolean, boolean, boolean, number | null]], ) => Reply; export const op_file_path_join: (args: [string, string]) => Reply; export const op_file_path_parent: (path: string) => Reply; export const op_file_path_stat: (args: [string, boolean]) => Promise>; export const op_file_path_stat_sync: (args: [string, boolean]) => Reply; export const op_file_path_truncate: (args: [string, number]) => Promise>; export const op_file_path_truncate_sync: (args: [string, number]) => Reply; export const op_file_prepare_copy: (args: [string, string, boolean, boolean]) => Promise>; export const op_file_prepare_copy_sync: (args: [string, string, boolean, boolean]) => Reply; export const op_file_read: (args: [number, number]) => Promise | null>>; export const op_file_read_sync: (args: [number, number]) => Reply | null>; export const op_file_read_dir: (path: string) => Promise>; export const op_file_read_dir_sync: (path: string) => Reply; export const op_file_read_link: (path: string) => Promise>; export const op_file_read_link_sync: (path: string) => Reply; export const op_file_read_tree_dir: (path: string) => Promise>; export const op_file_read_tree_dir_sync: (path: string) => Reply; export const op_file_real_path: (path: string) => Promise>; export const op_file_real_path_sync: (path: string) => Reply; export const op_file_remove: (args: [string, boolean]) => Promise>; export const op_file_remove_sync: (args: [string, boolean]) => Reply; export const op_file_rename: (args: [string, string]) => Promise>; export const op_file_rename_sync: (args: [string, string]) => Reply; export const op_file_seek: (args: [number, number, number]) => Promise>; export const op_file_seek_sync: (args: [number, number, number]) => Reply; export const op_file_stat: (id: number) => Promise>; export const op_file_stat_sync: (id: number) => Reply; export const op_file_symlink: (args: [string, string, "file" | "dir" | null]) => Promise>; export const op_file_symlink_sync: (args: [string, string, "file" | "dir" | null]) => Reply; export const op_file_sync: (args: [number, boolean]) => Promise>; export const op_file_sync_sync: (args: [number, boolean]) => Reply; export const op_file_tmp_dir: () => Reply; export const op_file_truncate: (args: [number, number]) => Promise>; export const op_file_truncate_sync: (args: [number, number]) => Reply; export const op_file_url_path: (url: string) => Reply; export const op_file_utime: (args: [string, number, number, number, number]) => Promise>; export const op_file_utime_sync: (args: [string, number, number, number, number]) => Reply; export const op_file_watch: (args: [string[], boolean]) => Reply; export const op_file_watch_close: (args: [number, boolean]) => Reply; export const op_file_watch_keepalive: (args: [number, number]) => Promise>; export const op_file_watch_next: (id: number) => Promise>; export const op_file_watch_next_unref: (id: number) => Promise>; export const op_file_watch_ref: (id: number) => Reply; export const op_file_write: (args: [number, Uint8Array]) => Promise>; export const op_file_write_sync: (args: [number, Uint8Array]) => Reply; export const op_file_writev: (args: [number, Uint8Array[]]) => Promise>; export const op_file_writev_sync: (args: [number, Uint8Array[]]) => Reply; }