export type CodegraphUpstreamLayout = { /** * Absolute path of the script to spawn with `process.execPath`. Empty * string when NO candidate directory holds an entry at all — the caller * then fails with a path it can name rather than with a silent `undefined`. */ readonly binaryPath: string; /** * Absolute path of the directory holding upstream's JS modules * (`types.js`, `extraction/grammars.js`). Same `dist/` the entry's `bin/` * lives under, so one probe locates both. */ readonly moduleDir: string; }; /** * Resolve upstream's layout for one `package.json` path. * * `packageJsonPath` is a parameter rather than a lookup because the doctor's * yarn-pnp fallback reaches the same package by a filesystem walk and needs * the layout for THAT path, not for whatever `createRequire` finds. */ export declare function codegraphUpstreamLayoutFor(packageJsonPath: string): CodegraphUpstreamLayout; /** `codegraphUpstreamLayoutFor` for whichever install this process runs against. */ export declare function resolveCodegraphUpstreamLayout(): CodegraphUpstreamLayout;