import { T as WideEvent, r as DrainContext } from "../types-B82IuY7M.mjs"; //#region src/adapters/sentry.d.ts interface SentryConfig { /** Sentry DSN */ dsn: string; /** Environment override (defaults to event.environment) */ environment?: string; /** Release version override (defaults to event.version) */ release?: string; /** Additional tags to attach as attributes */ tags?: Record; /** Request timeout in milliseconds. Default: 5000 */ timeout?: number; } /** Sentry Log attribute value with type annotation */ interface SentryAttributeValue { value: string | number | boolean; type: 'string' | 'integer' | 'double' | 'boolean'; } /** Sentry Structured Log payload */ interface SentryLog { timestamp: number; trace_id: string; level: 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'; body: string; severity_number: number; attributes?: Record; } declare function toSentryLog(event: WideEvent, config: SentryConfig): SentryLog; /** * Create a drain function for sending logs to Sentry. * * Sends wide events as Sentry Structured Logs, visible in Explore > Logs * in the Sentry dashboard. * * Configuration priority (highest to lowest): * 1. Overrides passed to createSentryDrain() * 2. runtimeConfig.mxllog.sentry * 3. runtimeConfig.sentry * 4. Environment variables: NUXT_SENTRY_*, SENTRY_* * * @example * ```ts * // Zero config - just set NUXT_SENTRY_DSN env var * nitroApp.hooks.hook('mxllog:drain', createSentryDrain()) * * // With overrides * nitroApp.hooks.hook('mxllog:drain', createSentryDrain({ * dsn: 'https://public@o0.ingest.sentry.io/123', * })) * ``` */ declare function createSentryDrain(overrides?: Partial): (ctx: DrainContext | DrainContext[]) => Promise; /** * Send a single event to Sentry as a structured log. * * @example * ```ts * await sendToSentry(event, { * dsn: process.env.SENTRY_DSN!, * }) * ``` */ declare function sendToSentry(event: WideEvent, config: SentryConfig): Promise; /** * Send a batch of events to Sentry as structured logs via the Envelope endpoint. * * @example * ```ts * await sendBatchToSentry(events, { * dsn: process.env.SENTRY_DSN!, * }) * ``` */ declare function sendBatchToSentry(events: WideEvent[], config: SentryConfig): Promise; //#endregion export { SentryAttributeValue, SentryConfig, SentryLog, createSentryDrain, sendBatchToSentry, sendToSentry, toSentryLog }; //# sourceMappingURL=sentry.d.mts.map