message: fix: Remove globalThis usage
diff: import { API } from '@sentry/core';
  -import { Event, Response, SentryRequestType, Status, Transport, TransportOptions } from '@sentry/types';
  +import {
  + Event,
  + Response as SentryResponse,
  + SentryRequestType,
  + Status,
  + Transport,
  + TransportOptions,
  +} from '@sentry/types';
  import { logger, parseRetryAfterHeader, PromiseBuffer, SentryError } from '@sentry/utils';
  /** Base Transport class implementation */
  @@ -13,7 +20,7 @@ export abstract class BaseTransport implements Transport {
  protected readonly _api: API;
  /** A simple buffer holding all requests. */
  - protected readonly _buffer: PromiseBuffer<Response> = new PromiseBuffer(30);
  + protected readonly _buffer: PromiseBuffer<SentryResponse> = new PromiseBuffer(30);
  /** Locks transport after receiving rate limits in a response */
  protected readonly _rateLimits: Record<string, Date> = {};
  @@ -27,7 +34,7 @@ export abstract class BaseTransport implements Transport {
  /**
  * @inheritDoc
  */
  - public sendEvent(_: Event): PromiseLike<Response> {
  + public sendEvent(_: Event): PromiseLike<SentryResponse> {
  throw new SentryError('Transport Class has to implement `sendEvent` method');
  }
  @@ -49,9 +56,9 @@ export abstract class BaseTransport implements Transport {
  reject,
  }: {
  requestType: SentryRequestType;
  - response: globalThis.Response | XMLHttpRequest;
  + response: Response | XMLHttpRequest;
  headers: Record<string, string | null>;
  - resolve: (value?: Response | PromiseLike<Response> | null | undefined) => void;
  + resolve: (value?: SentryResponse | PromiseLike<SentryResponse> | null | undefined) => void;
  reject: (reason?: unknown) => void;
  }): void {
  const status = Status.fromHttpCode(response.status);
  