import type { Plugin } from "vite"; /** * Prefixes Vite's `base` onto an absolute path. A relative base (`"./"`) * cannot be combined with an absolute path, so it is left alone. * Only exported for testability. */ export declare const withBase: (base: string, absolutePath: string) => string; export type ServicenowSeismicPluginOptions = { filter?: (id: string) => boolean; }; /** * Vite plugin that rewrites `assert { external: "uxasset" }` / * `with { external: "uxasset" }` imports to the ServiceNow externals path * (`/uxasset/externals//index.jsdbx`). * * **Important:** packages that contain uxasset-external imports must be added * to {@link https://vite.dev/config/dep-optimization-options.html#optimizedeps-exclude optimizeDeps.exclude} * in the consuming project's Vite config. The dep optimizer runs its own * Rolldown pipeline that does **not** invoke environment plugin `transform` * hooks, so without the exclusion the import attributes are silently stripped * and the imports are left un-transformed in dev. */ export declare function servicenowSeismicPlugin(options?: ServicenowSeismicPluginOptions): Plugin;