import type { Pail } from "@visulima/pail";
import type { TsConfigResult } from "@visulima/tsconfig";
import type { Plugin } from "rollup";
/**
 * This plugin resolves module paths using the rootDirs configuration from the tsconfig.json file.
 *
 * Consider the following example configuration:
 * @example
 * ```json
 * {
 *    "compilerOptions": {
 *        "rootDirs": ["lib"]
 *    }
 * }
 * ```
 *
 * This configuration will allow you to import modules from the `src` and `lib` directories.
 *
 * ```typescript
 * import { foo } from "./foo.d.cts"; -> ./src/foo
 * import { bar } from "./bar.d.cts"; // -> ./lib/bar
 * ```
 */
declare const resolveTsconfigRootDirectories: (cwd: string, logger: Pail, tsconfig: TsConfigResult) => Plugin;
export = resolveTsconfigRootDirectories;
