import { type PartialWithUndefined } from '@augment-vir/common'; import { type ErrorEvent, type EventHint, type Event as SentryEvent, type TransactionEvent } from '@sentry/core'; import { type EventContextAndTags } from '../event-context/event-context.js'; import { type ThrottleOptions } from '../processing/throttling.js'; /** A Sentry event object without the fields that are set by the logging context. */ export type SendLogEvent = Omit; /** All accepted input types for `sendLog`. Strings, Error objects, and raw Sentry events. */ export type SendLogInfo = string | Error | SendLogEvent; /** Send non-error events to Sentry. */ export declare const sendLog: { /** Sends an even to Sentry with debug severity. */ readonly debug: (info: SendLogInfo, eventOptions?: EventContextAndTags) => string | undefined; /** Sends an even to Sentry with info severity. */ readonly info: (info: SendLogInfo, eventOptions?: EventContextAndTags) => string | undefined; /** Sends an even to Sentry with warning severity. */ readonly warning: (info: SendLogInfo, eventOptions?: EventContextAndTags) => string | undefined; }; /** * Runs the throttle decision and, if a state transition just occurred (`'started'` or `'ended'`) * and `disableThrottleLog` is not set, emits the corresponding `Throttling started: ...` / * `Throttling ended after suppressing N events: ...` warning via `sendLog.warning`. Returns whether * the event should be throttled (i.e. dropped). * * @category Internal */ export declare function throttleEventWithLogging(event: Pick, hint: Readonly> | undefined, options: Readonly>): boolean; /** * Synchronous pre-capture throttle check used by `sendLog` and `handleError`. Returns `true` when * the event should be dropped. Returns `false` (i.e. "send it") when no active throttle options * have been registered yet, so events sent before Sentry init aren't accidentally throttled. * * @category Internal */ export declare function checkActiveThrottle(event: Pick, hint: Readonly> | undefined, perCallThreshold: number | undefined): boolean;