export declare function readText(file: string): Promise; /** The nearest directory at or above `start` that holds a `.git` entry (a checkout or a worktree), if any. */ export declare function repositoryRoot(start: string): Promise; /** * Directories that may hold the lockfile (or the hoisted `node_modules`) for the package in `packageDir`: every * ancestor up to the scan root, then — when the scan root sits inside a repository (`--path` into a workspace * monorepo) — on up to that repository's root, where Yarn/npm/pnpm workspaces keep the one lockfile. */ export declare function lockfileDirectories(packageDir: string, root: string): Promise; export interface LockedVersion { version: string; /** The lockfile's base name, for evidence text. */ lockfile: 'package-lock.json' | 'pnpm-lock.yaml' | 'yarn.lock'; /** * The package actually installed under the dependency's name when it differs — an `npm:` alias such as * `"react-native-iap": "npm:@fork/react-native-iap@^12"`. The version is then that package's, not `name`'s. */ aliasOf?: string; } /** The version a lockfile in `lockDir` resolved for dependency `name` (declared as `declared`) of the package in `packageDir`. */ export declare function lockedPackageVersion(name: string, packageDir: string, lockDir: string, declared: string): Promise;