import { Config as Config$1 } from '@swc/types';
import { Config } from 'jest';
import { TsJestTransformerOptions } from 'ts-jest';
import { Config as Config$2 } from '@jest/types';
import { CompilerOptions } from 'typescript';

type CreateJestConfigOptions = Exclude<Partial<Config>, 'rootDir'> & {
    rootDir: string;
};
declare function createSwcJestConfig(options: CreateJestConfigOptions, swcConfig?: Config$1): Config;
declare function createTsJestConfig(options: CreateJestConfigOptions, tsJestConfig?: TsJestTransformerOptions): Config;

type TsPathMapping = Exclude<CompilerOptions['paths'], undefined>;
type JestPathMapping = Config$2.InitialOptions['moduleNameMapper'];
declare const pathsToModuleNameMapper: (mapping: TsPathMapping, { prefix, useESM }?: {
    prefix?: string;
    useESM?: boolean;
}) => JestPathMapping;

export { type CreateJestConfigOptions, createSwcJestConfig, createTsJestConfig, pathsToModuleNameMapper };
