/** * Transformer class for compiling TSX source code at runtime. * Uses @babel/standalone to transform JSX syntax into jsx() function calls. * * Works in both Node.js and browser environments. */ export interface TransformOptions { /** Additional Babel plugins to include in the transform. Each entry is [pluginName, options]. */ extraPlugins?: Array<[string, Record]>; } export declare class Transformer { /** * Transform a source string containing TSX code. * Works in both Node.js and browser environments. * * @param source - The TSX source code to transform * @param filename - Filename used for error messages and source maps * @param options - Optional transform configuration (e.g., extra plugins) * @returns The transformed JavaScript code * @throws Error if transformation fails */ transformSourceAsync(source: string, filename: string, options?: TransformOptions): Promise; } //# sourceMappingURL=transformer.d.ts.map