//#region src/lib/wait-until.d.ts
/**
 * `waitUntil(promise)` defers async work past a Neon Function's response: the runtime
 * keeps the invocation alive until the promise settles (up to the 15-minute limit).
 *
 * The runtime publishes the active invocation context on `globalThis.NEON_REQUEST_CONTEXT`
 * (a getter returning `{ waitUntil }` during an invocation, `undefined` outside one), so we
 * read it directly. Off-platform — local dev, tests, non-Neon hosts — there is no context
 * and this is a no-op, mirroring `@vercel/functions`: the promise the caller created still
 * runs on its own, it just isn't tracked. Passing a non-Promise throws a `TypeError`.
 */
declare global {
  var NEON_REQUEST_CONTEXT: {
    waitUntil?: (promise: Promise<unknown>) => void;
  } | undefined;
}
declare function waitUntil(promise: Promise<unknown>): void;
//#endregion
export { waitUntil };
//# sourceMappingURL=wait-until.d.ts.map