import type { Plugin } from 'vite'; /** Bootstrap 5's components, by the class each module exports. */ export type BootstrapComponent = 'Alert' | 'Button' | 'Carousel' | 'Collapse' | 'Dropdown' | 'Modal' | 'Offcanvas' | 'Popover' | 'ScrollSpy' | 'Tab' | 'Toast' | 'Tooltip'; export interface BootstrapLiteOptions { /** * Every component the app runs: each class its code imports from `bootstrap`, and each component whose data * attributes its markup renders (`data-bs-toggle="collapse"`, `data-bs-dismiss="modal"`, …). A component's module * registers its data attributes when it loads, so one left out here is a click that does nothing, while a class * left out stops the build (`… is not exported`). powerduck itself imports Modal, Dropdown and Tooltip, and renders * the data attributes of Collapse (accordion, collapse) and Tab (tabs). */ components: readonly BootstrapComponent[]; /** * Position Bootstrap's dropdowns and tooltips with popper-lite (common/popper-lite.ts) instead of `@popperjs/core`; * true unless set false. popper-lite does what Bootstrap asks of Popper and nothing else, so the build stops when * any other module imports Popper. */ popperLite?: boolean; } /** Bootstrap with only `components`, and popper-lite for Popper, in the app's browser code (bootstrap-lite.mjs). */ export declare const bootstrapLite: (options: BootstrapLiteOptions) => Plugin;