import type { Api } from '../../../types'; import type { BundlessConfig } from '../../config'; import type { LoaderOutput } from './types'; /** * loader item type */ export interface LoaderItem { id: string; test: string | RegExp | ((path: string) => boolean); loader: string; options?: Record; } /** * add loader * @param item loader item */ export declare function addLoader(item: LoaderItem): void; /** * loader module base on webpack loader-runner */ declare const _default: (fileAbsPath: string, opts: { config: BundlessConfig; pkg: Api['pkg']; cwd: string; itemDistAbsPath: string; }) => Promise; export default _default;