import type { ImportSpecifier } from '@winner-fed/bundler-utils/compiled/es-module-lexer'; import type { TransformOptions } from '@winner-fed/bundler-utils/compiled/esbuild'; import type { LoaderContext } from '../compiled/webpack'; export interface IEsbuildLoaderHandlerParams { code: string; filePath: string; imports: readonly ImportSpecifier[]; exports: readonly string[]; } export interface IEsbuildLoaderOpts extends Partial { handler?: Array<(opts: IEsbuildLoaderHandlerParams) => string>; implementation?: typeof import('@winner-fed/bundler-utils/compiled/esbuild'); } declare function esbuildTranspiler(this: LoaderContext, source: string): Promise; export default esbuildTranspiler; export declare const esbuildLoader: string;