/** * Which package a path lies in: the innermost `node_modules//` in it, * scoped names included, with the version when pnpm's store folder carries * one (`.pnpm/@_/`). The panel names a location's * package with it, and the extension the package of a manifest it fetched. * * Pure and browser-safe: a path or a URL's pathname, slashes either way. */ export interface PathPackage { /** `lit`, `@awesome.me/webawesome`. */ name: string; /** `3.14.0`, when the path says. */ version?: string; /** The rest of the path, inside the package. */ inner: string; } /** * The package `path` lies in, or `undefined` outside any. A path under * `node_modules` but in no package (Vite's `.vite/deps` pre-bundles, pnpm's * own folders, a bare scope) is in none. */ export declare const packageOfPath: (path: string) => PathPackage | undefined; //# sourceMappingURL=package-path.d.ts.map