import { OnLoadResult } from 'esbuild'; import { StringOptions } from 'sass'; import { sassPlugin } from './plugin'; export type Type = 'css' | 'local-css' | 'style' | 'css-text' | 'lit-css' | ((cssText: string, nonce?: string) => string); export type NamedExport = boolean | ((name: string) => string); export type SassPluginOptions = StringOptions<'sync' | 'async'> & { filter?: RegExp; importMapper?: (url: string) => string; includePaths?: string[]; basedir?: string; type?: Type; cache?: Map | boolean; transform?: (this: SassPluginOptions, css: string, resolveDir: string, filePath: string) => string | OnLoadResult | Promise; precompile?: (source: string, path: string, isRoot?: boolean) => string; cssImports?: boolean; nonce?: string; prefer?: 'sass' | 'style' | 'main'; embedded?: boolean; namedExports?: NamedExport; }; export default sassPlugin; export { sassPlugin }; export { makeModule, postcssModules } from './utils'; export type CachedResult = { mtimeMs: number; result: OnLoadResult; };