import { type JsLoaderContext, type JsLoaderItem } from '@rspack/binding'; import type { Compiler } from '../Compiler.js'; export declare class LoaderObject { request: string; path: string; query: string; fragment: string; options?: string | object; ident: string; normal?: Function; pitch?: Function; raw?: boolean; type?: 'module' | 'commonjs'; parallel?: boolean | { maxWorkers?: number; }; /** * @internal This field is rspack internal. Do not edit. */ loaderItem: JsLoaderItem; constructor(loaderItem: JsLoaderItem, compiler: Compiler); get pitchExecuted(): boolean; set pitchExecuted(value: boolean); get normalExecuted(): boolean; set normalExecuted(value: boolean); set noPitch(value: boolean); shouldYield(): boolean; static __from_binding(loaderItem: JsLoaderItem, compiler: Compiler): LoaderObject; static __to_binding(loader: LoaderObject): JsLoaderItem; } export declare function runLoaders(compiler: Compiler, context: JsLoaderContext): Promise; export declare function parsePathQueryFragment(str: string): { path: string; query: string; fragment: string; };