import { Loader } from '@rsdoctor/utils/common'; import { SDK, Plugin } from '@rsdoctor/types'; import { ProxyLoaderInternalOptions, ProxyLoaderOptions } from '../../types'; import { Utils as BuildUtils } from '../../build-utils/build'; export declare function getInternalLoaderOptions(loaderContext: Plugin.LoaderContext): ProxyLoaderInternalOptions; export declare function getLoaderOptionsWithoutInternalKeys(loaderContext: Plugin.LoaderContext): Omit; export declare function getOriginLoaderModule(loaderContext: Plugin.LoaderContext): ReturnType; export declare function shouldSkipLoader(loaderContext: Plugin.LoaderContext): boolean; export type CompatibleResolve = Omit & { mainFields?: string[]; }; export declare function interceptLoader(rules: T[], loaderPath: string, options: Omit, cwd?: string, resolveLoader?: CompatibleResolve): T[]; export declare function reportLoader(ctx: Plugin.LoaderContext, start: number, startHRTime: [number, number], isPitch: boolean, sync: boolean, code: string, err: Error | null | undefined, res: string | Buffer | null, sourceMap?: Plugin.SourceMapInput): Promise;