import MagicString from 'magic-string';
import { CompilerResult } from '../../types/build.js';
import '@deepkit/type';
import '@storm-software/config/types';
import '@storm-stack/types/shared/log';
import '@stryke/env/get-env-paths';
import '@stryke/env/types';
import '@stryke/types/base';
import '@stryke/types/configuration';
import '@stryke/types/package-json';
import '@stryke/types/tsconfig';
import 'hookable';
import 'jiti';
import 'typescript';
import 'unimport';
import '../../types/config.js';
import '@storm-software/config-tools/types';

/**
 * Generate code with source map.
 *
 * @param id - The file name.
 * @param source - The source code.
 * @param transpiled - The transpiled code.
 * @returns The compiler result.
 */
declare function generateSourceMap(id: string, source: MagicString, transpiled?: string): CompilerResult;

export { generateSourceMap };
