import { Configuration } from 'webpack';
import { LoaderConfOptions } from 'kkt';
type LessLoaderOptionsBase = {
    /**
     * @default compiler.devtool
     */
    sourceMap?: boolean;
    /**
     * @default true
     */
    webpackImporter?: boolean;
};
export type LessLoaderOptions = LessLoaderOptionsBase & {
    lessOptions?: (loaderContext: any) => void;
} & {
    lessOptions?: Record<string, any>;
};
/**
 * Use create-react-app to build react libraries. Support for regular less files and *.module.less files.
 */
declare const lessmodule: (conf: Configuration, evn: string, options?: LoaderConfOptions) => Configuration;
export default lessmodule;
