import type { Plugin } from 'vite';
/**
 * A Vite plugin that suppresses the "Automatically externalized node built-in module"
 * warnings that Vite emits when bundling for Cloudflare Workers.
 *
 * These warnings are expected because `@sentry/astro` re-exports `@sentry/node` on the
 * server side, and `@sentry/node` (plus OpenTelemetry) import many Node.js built-in
 * modules. Vite correctly externalizes them, but warns about it. These warnings are
 * harmless since Cloudflare Workers support Node.js built-ins under the `node:` prefix.
 */
export declare function sentryCloudflareNodeWarningPlugin(): Plugin;
/**
 * A Vite plugin that ensures the Sentry server config is loaded at the
 * top level of the Cloudflare Worker entry module, rather than only being
 * injected into SSR page modules via `injectScript('page-ssr', ...)`.
 *
 * Without this, Astro actions and API routes never call `Sentry.init()`,
 * because `injectScript('page-ssr')` only adds the import to page components.
 *
 * Additionally, this plugin wraps the Worker's default export handler with
 * `@sentry/cloudflare`'s `withSentry` to provide:
 * - `setAsyncLocalStorageAsyncContextStrategy()` for proper async context
 * - Per-request isolation scopes via `wrapRequestHandler`
 * - Trace context propagation
 */
export declare function sentryCloudflareVitePlugin(): Plugin;
//# sourceMappingURL=cloudflare.d.ts.map