import type { Plugin, UserConfig } from 'vite'; import type { SentrySolidStartOptions } from './sentrySolidStart'; import type { SentrySolidStartPluginOptions } from './types'; type SourceMapSettingOptions = { debug?: boolean; }; /** * A Sentry plugin for adding the @sentry/bundler-plugins/vite plugin to automatically upload source maps to Sentry. */ export declare function makeAddSentryVitePlugin(options: SentrySolidStartPluginOptions, viteConfig: UserConfig): Plugin[]; /** * SolidStart 2 counterpart of `makeAddSentryVitePlugin`, reading the flat `BuildTimeOptionsBase` * fields rather than the nested `sourceMapsUploadOptions`. * * Covers the Vite-built client assets only; Nitro emits the server bundle outside Vite's output dir * and the Sentry Nitro module uploads that. */ export declare function makeAddSentryVitePluginSolidStart2(options: SentrySolidStartOptions): Plugin[]; /** * A Sentry plugin for SolidStart to enable "hidden" source maps if they are unset. Used by both * SolidStart majors. */ export declare function makeEnableSourceMapsVitePlugin(options: SourceMapSettingOptions): Plugin[]; /** 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(viteConfig: UserConfig, sentryPluginOptions?: SourceMapSettingOptions): boolean | 'inline' | 'hidden'; export {}; //# sourceMappingURL=sourceMaps.d.ts.map