import type { BunPlugin } from "bun"; /** The subset of the `sass` / `sass-embedded` API this plugin uses. Both packages satisfy it. */ export interface SassCompiler { compileString(source: string, options?: { readonly syntax?: "scss" | "indented"; readonly style?: "expanded" | "compressed"; readonly loadPaths?: readonly string[]; readonly url?: URL; }): { readonly css: string; }; } export interface ScssPluginOptions { /** Inject the compiler (default: the `sass` optional peer, loaded lazily). Pass `sass-embedded` or a stub. */ readonly compiler?: SassCompiler; /** Output style handed to Sass. Default `"expanded"` (Bun minifies the final CSS bundle anyway). */ readonly style?: "expanded" | "compressed"; /** Extra import search paths for `@use`/`@import`, in addition to the source file's own directory. */ readonly loadPaths?: readonly string[]; } /** * The SASS/SCSS Bun plugin. `"dom"` → bundles the compiled CSS (and, for `*.module.scss`, exports the * scoped class map); `"ssr"` → the class map only for `*.module.scss`, an empty module for plain Sass. * Tolerates a trailing `?query` (dev servers append one to bust Bun's import cache). */ export declare function scssBunPlugin(generate: "dom" | "ssr", options?: ScssPluginOptions): BunPlugin; //# sourceMappingURL=scss.d.ts.map