import type { Externals } from "../../CodeHighlighter/types.mjs";
/**
 * Generates both import statements and resolved externals object
 * Returns the import statements and the externals as a JavaScript object
 *
 * `existingNames` are identifier names already in scope at the injection site
 * (e.g. existing imports or top-level declarations in the destination file).
 * They are seeded into the conflict-resolution set so injected imports get
 * aliased to a unique name when they would collide.
 */
export declare function generateResolvedExternals(externals: Externals, existingNames?: Iterable<string>): {
  imports: string[];
  resolvedExternals: Record<string, string>;
};