/** * Resolve an npm package by name (and optional version pin) inside the given * project's `node_modules`. Walks up parent directories so a server launched * from a subfolder still finds the project root install. */ export interface ResolvedPackage { name: string; version: string; pkgDir: string; pkgJsonPath: string; } /** * Walk up from `startDir` looking for a `node_modules/` directory. * Returns the matching package directory or null. */ export declare function findInstalledPackage(name: string, startDir: string): string | null; export declare function resolvePackage(name: string, version: string | undefined, projectDir: string): ResolvedPackage;