import { type PartialWithUndefined } from '@augment-vir/common'; import { type EventHint } from '@sentry/browser'; import { type ErrorEvent, type TransactionEvent } from '@sentry/core'; import { type ThrottleOptions } from './throttling.js'; /** Creates a handler for Sentry events based on the given env. */ export declare function createSentryHandler({ isDev, isSilent, throttleOptions, }: { /** If in dev, events won't be sent to Sentry. They will only be logged in the console. */ isDev: boolean; /** If silent, events won't even get logged to the console. */ isSilent: boolean; throttleOptions: Readonly> | undefined; }): (event: T, hint: EventHint) => T | null;