import type { Filesystem } from '../find-up/find-minimatch.js';
import type { PackageJson } from 'type-fest';
import { type NormalizedAbsolutePath } from '../files.js';
import type { Rule } from 'eslint';
import { type DependencyManifest } from './resolvers/types.js';
/**
 * Returns the project manifests that are used to resolve the dependencies imported by
 * the module named `filename`, up to the passed working directory.
 */
export declare const getPackageJsonManifests: (dir: NormalizedAbsolutePath, topDir?: NormalizedAbsolutePath, fileSystem?: Filesystem) => Array<PackageJson>;
export declare const getPackageJsonManifestsSanitizePaths: (context: Rule.RuleContext, fileSystem?: Filesystem) => Array<PackageJson>;
/**
 * Returns dependency manifest files from closest-to-file and then up to root.
 *
 * For each directory, at most one Deno manifest is selected (`deno.json` > `deno.jsonc`)
 * and `package.json` is always included when present.
 */
export declare const getDependencyManifests: (dir: NormalizedAbsolutePath, topDir?: NormalizedAbsolutePath, fileSystem?: Filesystem) => DependencyManifest[];
