import { LoaderType } from '../Loader';
import DefinitionLoaderDescription from '../LoaderDescription';
/**
 * The babel files regular expression. Taken from the Gulp “interpret” project:
 * https://github.com/gulpjs/interpret.
 */
export declare const noEndsInBabelJs: RegExp;
/**
 * Check if file is a babel or node module. Taken from the Gulp “interpret” project:
 * https://github.com/gulpjs/interpret.
 *
 * @param file - The file to test.
 * @returns False if file is babel or node module and should not be ignored.
 */
export declare function ignoreNonBabelAndNodeModules(file: string): boolean;
/**
 * The description, as used out of the loaders.
 */
export declare type LoaderDescription = Omit<DefinitionLoaderDescription, 'filetypes'>;
/**
 * Analyze the loaders to create both loader descriptions and extensions loaders.
 *
 * @param loaders - The loaders to analyze.
 * @param namePrefix - The prefix to add to loader names.
 * @returns The analyze result.
 */
export declare function analyzeLoaders(loaders: {
    [name: string]: LoaderType<any>;
}, namePrefix?: string): [{
    [name: string]: LoaderDescription;
}, {
    [type: string]: ReadonlyArray<string>;
}];
