import type { BrowserOptions, ErrorEvent, EventHint } from '@sentry/browser'; import type { NodeOptions } from '@sentry/node'; import type { FilecoinNetworkType } from '../types.ts'; import { type SentryType } from './utils.ts'; type SentryInitOptions = BrowserOptions | NodeOptions; type SentrySetTags = Parameters[0]; type SentryBeforeSendFunction = (event: ErrorEvent, hint: EventHint) => Promise; type SentryBeforeSendSpanFunction = NonNullable; export interface TelemetryConfig { sentryInitOptions?: SentryInitOptions; sentrySetTags?: SentrySetTags; } export interface TelemetryRuntimeContext { filecoinNetwork: FilecoinNetworkType; } export interface DebugDump { events: any[]; } export declare class TelemetryService { private eventBuffer; private readonly maxBufferSize; sentry: SentryType | null; initSentry(config: TelemetryConfig, context: TelemetryRuntimeContext): Promise; protected createBeforeSend(config: TelemetryConfig): SentryBeforeSendFunction; protected createBeforeSendSpan(config: TelemetryConfig, globalTags: Record): SentryBeforeSendSpanFunction; debugDump(limit?: number): DebugDump; private addToEventBuffer; } export {}; //# sourceMappingURL=service.d.ts.map