import type { LoaderContext } from '@rspack/core';
import type { EnvironmentContext, RspackSourceMap } from '../types';
export type TransformLoaderOptions = {
    id: string;
    getEnvironment: () => EnvironmentContext;
};
export default function transform(this: LoaderContext<TransformLoaderOptions>, source: string, map?: string | RspackSourceMap): Promise<void>;
