import type { AstroConfig, AstroIntegration, AstroIntegrationLogger } from 'astro'; import type { SentryOptions } from './types'; export declare const sentryAstro: (options?: SentryOptions) => AstroIntegration; /** * Whether the user enabled (true, 'hidden', 'inline') or disabled (false) source maps */ export type UserSourceMapSetting = 'enabled' | 'disabled' | 'unset' | undefined; /** There are 3 ways to set up source map generation (https://github.com/getsentry/sentry-javascript/issues/13993) * * 1. User explicitly disabled source maps * - keep this setting (emit a warning that errors won't be unminified in Sentry) * - We won't upload anything * * 2. Users enabled source map generation (true, 'hidden', 'inline'). * - keep this setting (don't do anything - like deletion - besides uploading) * * 3. Users didn't set source maps generation * - we enable 'hidden' source maps generation * - configure `filesToDeleteAfterUpload` to delete all .map files (we emit a log about this) * * --> only exported for testing */ export declare function _getUpdatedSourceMapSettings(astroConfig: AstroConfig, sentryOptions: SentryOptions | undefined, logger: AstroIntegrationLogger): { previousUserSourceMapSetting: UserSourceMapSetting; updatedSourceMapSetting: boolean | 'inline' | 'hidden'; }; //# sourceMappingURL=index.d.ts.map