import { ParseResult } from '@babel/parser'; import * as t from '@babel/types'; /** * Given an AST determines if the file needs to be compiled as CommonJS or ESM. * @param ast - The AST to analyze * @returns True if the file needs to be compiled as CommonJS, false if it needs to be compiled as ESM */ export declare function needsCJS({ ast, warnings, filepath, packageJson, tsconfigJson, }: { ast: ParseResult; warnings: string[]; filepath: string; packageJson?: { type?: string; }; tsconfigJson?: { compilerOptions?: { module?: string; }; }; }): boolean;