///
import webpack from 'webpack';
import { Options as StyleLoaderOptions } from '../../webpack/style-loader';
import { Options as CssLoaderOptions } from '../../webpack/css-loader';
import { Options as SassLoaderOptions } from '../../webpack/sass-loader';
import { Options as PostcssLoaderOptions } from '../../webpack/postcss-loader';
export declare const enum StyleCompiler {
Sass = "sass",
Less = "less"
}
declare type LoaderOptions = {
style?: Partial;
css?: Partial;
compiler?: Partial;
postcss?: Partial;
};
export interface Options {
context: string;
sourceMap: boolean;
cssModule: boolean;
globalStyle: boolean | string;
loader: LoaderOptions;
globalLoader: LoaderOptions;
plugins: Function[];
/**@todo impl */ compiler: boolean | StyleCompiler;
}
export declare const DEFAULT_OPTIONS: Omit;
declare type CreatorType = {
config: webpack.RuleSetUse;
entry?: string;
};
export declare function makeUnSupportsCompilerError(unSupportsCompiler: any): Error;
export declare function parseStyleCompiler(compiler: Options['compiler']): null | StyleCompiler;
export declare function mapCompilerToPostcssSyntax(compiler: StyleCompiler): string;
export declare function mapCompilerToLoader(compiler: StyleCompiler): string;
export declare function overrideLibraryClassName(loaderContext: webpack.loader.LoaderContext, localIdentName: string, localName: string, options: any): string;
export declare function makeNormalStyleConfig(options: Options, compiler?: null | StyleCompiler): CreatorType;
export declare function makeGlobalStyleConfig(options: Options, compiler?: null | StyleCompiler): CreatorType;
export default function makeStyleConfig(options: Partial | undefined, context: string): webpack.Configuration;
export {};
//# sourceMappingURL=style.d.ts.map