import * as t from '@babel/types';
import { OnLoadResult } from 'esbuild';
interface MacroFunction {
    ast: t.FunctionDeclaration | t.FunctionExpression;
    path: string;
    args: t.Node[];
}
export declare class MacroTransformer {
    cache: Map<string, string>;
    functions: Map<string, MacroFunction>;
    transform(contents: string, filePath: string): Promise<OnLoadResult>;
}
export {};
