// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. // deno-lint-ignore-file no-explicit-any /// /// declare namespace Deno { declare namespace core { /** Call an op in Rust, and synchronously receive the result. */ function opSync( opName: string, args?: any, zeroCopy?: Uint8Array, ): any; /** Call an op in Rust, and asynchronously receive the result. */ function opAsync( opName: string, args?: any, zeroCopy?: Uint8Array, ): Promise; /** * Retrieve a list of all registered ops, in the form of a map that maps op * name to internal numerical op id. */ function ops(): Record; /** * Retrieve a list of all open resources, in the form of a map that maps * resource id to the resource name. */ function resources(): Record; /** Close the resource with the specified op id. */ function close(rid: number): void; /** Get heap stats for current isolate/worker */ function heapStats(): Record; } }