// Type declarations for jso-symbolicate/sentry

export interface SentryEventProcessorOptions {
    /** Attach a copy of the un-demangled event under event.extra.jso_mangled_event. Useful for forensic comparison. */
    preserveOriginal?: boolean;
}

/**
 * Build a Sentry beforeSend / Event Processor function that demangles mangled
 * identifiers throughout the event in-place. Safe to use as a top-level
 * `beforeSend` in `Sentry.init`.
 */
export function createSentryEventProcessor<TEvent = any>(
    lookup: Record<string, string>,
    options?: SentryEventProcessorOptions
): (event: TEvent) => TEvent;
