/** * Promise.withResolvers type shim. * * The repo tsconfig targets ES2022 libs, but openpi runs on Node >=22.19 * (package.json engines), where Promise.withResolvers is available since * Node 22.0. This declaration matches lib.es2024.promise.withresolvers.d.ts. */ declare global { interface PromiseConstructor { withResolvers(): { promise: Promise; resolve: (value: T | PromiseLike) => void; reject: (reason?: unknown) => void; }; } } export {};