import { Signal, SignalAdapter } from './signal-types.js'; /** * Configuration for the Sentry signal adapter */ export interface SentryAdapterConfig { /** Breadcrumb category (default: 'smrt') */ category?: string; } /** * Sentry signal adapter — routes SMRT signals to Sentry/GlitchTip * * Error signals are captured as exceptions with scope tags and context. * All other signal types are added as breadcrumbs for debugging trail. * Requires `@sentry/node` to be installed and `Sentry.init()` called before use. * * @example * ```typescript * import { createSentryAdapter } from '@happyvertical/logger/sentry'; * * const adapter = createSentryAdapter({ category: 'myapp' }); * ``` */ export declare class SentryAdapter implements SignalAdapter { private category; constructor(config?: SentryAdapterConfig); /** * Handle a signal by routing to Sentry * * Error signals are captured as exceptions. All other signal types * are added as breadcrumbs. * * @param signal - The signal to handle */ handle(signal: Signal): Promise; private captureError; private addBreadcrumb; } /** * Create a Sentry signal adapter * * @param config - Optional configuration (breadcrumb category) * @returns Configured SentryAdapter instance */ export declare function createSentryAdapter(config?: SentryAdapterConfig): SentryAdapter; //# sourceMappingURL=sentry-adapter.d.ts.map