import type { Span, StartSpanOptions } from "@sentry/core"; export interface Sentry { startSpan(context: StartSpanOptions, callback: (span: Span) => T): T; } export default class SentryHandler { sentry: Sentry | null; constructor(sentry?: Sentry); startSpan(context: StartSpanOptions, callback: (span: Span) => T): T; }