import type { BunPlugin } from 'bun'; /** * Bun plugin that collects `css.create()` styles during a build. * * Style modules register their rules when they evaluate, so the plugin * imports each matching module as the bundler loads it and writes the * accumulated stylesheet out. Sources pass through untouched — the class * names are already plain strings by the time the bundler sees them. * * @example * ```ts * await Bun.build({ * entrypoints: ['./src/index.tsx'], * outdir: './dist', * plugins: [stylePlugin({ output: './dist/styles.css', minify: true })], * }) * ``` */ export declare function stylePlugin(options?: StylePluginOptions): BunPlugin; export declare interface StylePluginOptions { include?: RegExp styleModules?: string[] output?: string minify?: boolean onCSS?: (css: string) => void | Promise } export default stylePlugin;