import css, { CSSModuleExports } from 'lightningcss'; import Module, { TranspileOptions } from './module'; import JsonModule from './json_module'; export default class CssModule extends Module { exports?: JsonModule; matchImport(code: string): void; /** * Parse the module code and contruct dependencies. Unlike {@link JsModule}, CssModule uses the original code to parse dependencies instead because the code returned by {@link CssModule#load} would have `@import`s expanded and replaced. */ parse(): Promise; load(): Promise<{ code: string; }>; _transpile(options: TranspileOptions): Promise<{ code: string; map: any; }>; transpile(options: TranspileOptions): Promise<{ code: string; map: any; } | { code: string; exports: void | css.CSSModuleExports; map: any; }>; setExports({ exports }: { exports?: CSSModuleExports | void; }): Promise; obtain(): Promise; minify(): Promise; }