declare module "ext:core/ops" { export type FetchMetadata = [ status: number, statusText: string, headers: [name: string, value: string][], url: string, redirected: boolean, abandonedUpload: boolean, ]; export type FetchSendArgs = [ id: number, url: string, method: string, headers: [name: string, value: string][], bytes: Uint8Array | null, streaming: boolean, redirect: "follow" | "error" | "manual", ]; export function op_fetch_base(): string; export function op_fetch_create(unit: null): number; export function op_fetch_cancel(id: number): null; export function op_fetch_send(args: FetchSendArgs): Promise; export function op_fetch_read(id: number): Promise | null>; export function op_fetch_read_all(id: number): Promise>; export function op_fetch_write(args: [id: number, bytes: Uint8Array | null]): Promise; }