import { Plugin } from 'vite'; /** * Options for the Staffbase Drawer Vite plugin. */ export interface StaffbaseDrawerPluginOptions { /** * Custom prefix for drawer class names. * If not provided, a unique prefix will be auto-generated based on your package name. */ prefix?: string; /** * Optional seed to make the auto-generated prefix unique per build target. * * Useful when you build multiple widgets from the same repository (same `package.json` name) * and need different prefixes per widget build. * * If omitted, the plugin will try to derive a stable seed from build config (e.g. outDir/entry). */ seed?: string; } /** * Vite plugin for Staffbase Drawer that auto-configures unique class prefixes. * * This plugin automatically generates a unique prefix for your widget to prevent * CSS collisions when multiple widgets use the drawer on the same page. * @example * ```ts * // vite.config.ts * import { staffbaseDrawer } from '@favish/staffbase-drawer/vite-plugin' * * export default defineConfig({ * plugins: [ * react(), * staffbaseDrawer() // Auto-generates unique prefix * ] * }) * ``` * @example * ```ts * // With custom prefix * staffbaseDrawer({ prefix: 'mywidget' }) * ``` * @param {StaffbaseDrawerPluginOptions} options - Plugin options. * @returns {Plugin} Vite plugin configuration. */ export declare const staffbaseDrawer: (options?: StaffbaseDrawerPluginOptions) => Plugin; export default staffbaseDrawer; //# sourceMappingURL=vite-plugin.d.ts.map