import type { NmrConfig } from './types.js'; export interface ResolvedContext { monorepoRoot: string; isRoot: boolean; packageDir?: string; /** The workspace's package directories, resolved once here rather than swept for again by each reader. */ workspacePackageDirs: string[]; config: NmrConfig; } /** * Determines whether a directory is inside a workspace package. * Returns the package directory if so, or `undefined` if in root context. * * A workspace may nest one package inside another, so the deepest containing directory wins — matching * pnpm, which resolves a cwd to the package that encloses it most nearly. */ export declare function findContainingPackageDir(dir: string, workspacePackageDirs: string[]): string | undefined; /** * Resolves the full execution context: monorepo root, whether we're in a * workspace package or root context, and the loaded configuration. */ export declare function resolveContext(cwd?: string): Promise;