export interface CapturedItem { type: string; payload: Record; } export interface Captured { items: CapturedItem[]; } /** * Initializes Sentry via @sentry/core's low-level API. * * We use @sentry/core directly (not @sentry/node) because the middleware * imports from @sentry/core. pnpm isolates them as separate module instances * so only @sentry/core's global state is visible to the middleware. */ export declare function initSentryCapture(): Captured; export declare function capturedErrors(c: Captured): CapturedItem[]; export declare function capturedTransactions(c: Captured): CapturedItem[]; /** Check whether a captured error item contains an exception with the given message. */ export declare function errorHasException(item: CapturedItem, message: string): boolean; /** Filter captured errors to only step-level errors (tagged by the middleware). */ export declare function capturedStepErrors(c: Captured): CapturedItem[]; /** Collect all span descriptions across captured transactions. */ export declare function collectSpanNames(c: Captured): string[];