import { type ApplicationErrorReporter, captureApplicationError, flushApplicationErrors } from "./application-errors.js"; export { captureApplicationError, flushApplicationErrors }; export type { ApplicationErrorContext, ApplicationErrorReporter } from "./application-errors.js"; export type SentryConfig = { dsn?: string; environment?: string; release?: string; serviceName?: string; }; type SentryExtensionModule = { createSentryApplicationErrorReporter(config: Required): ApplicationErrorReporter; }; type SentryExtensionLoader = () => Promise; /** Return whether Sentry is explicitly enabled. */ export declare function isSentryEnabled(enabled: string | undefined): boolean; export declare function resolveSentryConfigFromEnv(defaultServiceName?: string): SentryConfig | undefined; export declare function initializeSentryFromEnv(defaultServiceName?: string, loadExtension?: SentryExtensionLoader): Promise; /** * Initialize the process-wide Sentry reporter once. * * Concurrent calls coalesce only when their normalized configurations are * identical. Once installed, an identical configuration remains idempotent; * a different configuration returns `false` because it was not applied. */ export declare function initializeSentry(config: SentryConfig, loadExtension?: SentryExtensionLoader): Promise; export declare function resetSentryForTests(): void; //# sourceMappingURL=sentry.d.ts.map