export let core: any;
const { Deno } = globalThis as any;
if (Deno?.core) { core = Deno.core;} else { core = { setNextTickCallback: undefined, evalContext(_code: string, _filename: string) { throw new Error( "Deno.core.evalContext is not supported in this environment", ); }, encode(chunk: string): Uint8Array { return new TextEncoder().encode(chunk); }, decode(chunk: Uint8Array): string { return new TextDecoder().decode(chunk); }, eventLoopHasMoreWork(): boolean { return false; }, ops: { op_napi_open(_filename: string) { throw new Error( "Node API is not supported in this environment", ); }, }, };}