import { type InternalGlobal } from '@sentry/core'; import type { Plugin } from 'vite'; import type { ResolvedKitConfig } from './kitConfig'; export type GlobalSentryValues = { __sentry_sveltekit_output_dir?: string; /** The release `sentryHandle` adds to the pages it renders */ __sentry_sveltekit_release?: string; SENTRY_RELEASE?: { id?: string; }; }; /** * Extend the `global` type with custom properties that are * injected by the SvelteKit SDK at build time. * @see packages/sveltekit/src/vite/sourcemaps.ts */ export type GlobalWithSentryValues = InternalGlobal & GlobalSentryValues; export declare const VIRTUAL_GLOBAL_VALUES_FILE = "\0sentry-inject-global-values-file"; /** * @returns code that injects @param globalSentryValues into the global object. */ export declare function getGlobalValueInjectionCode(globalSentryValues: GlobalSentryValues): string; type GlobalValuesInjectionOptions = { getKitConfig: () => Promise; getAdapterOutputDir: () => Promise; debug?: boolean; }; /** * Injects SvelteKit app configuration values into the server's global object * so that the SDK can pick up the information at runtime. */ export declare function makeGlobalValuesInjectionPlugin(options: GlobalValuesInjectionOptions): Plugin; export {}; //# sourceMappingURL=injectGlobalValues.d.ts.map