/** * Packaged asset resolution * * The package ships `language/` and `prompts/` alongside `dist/` (see the * `files` field). Both are looked up relative to the running module, which is * the one place where the source layout and the two bundle layouts disagree. */ /** * Locate a directory that ships with this package, by walking up from the * running module until it is found. * * Walking beats a list of fixed relative guesses because the depth differs per * build: `src/core/processing/` in source, `dist/` for the root bundles, * `dist/adapters/` for the subpath bundles. The first ancestor holding a * `package.json` is the ceiling - without it a host project's own `language/` * or `prompts/` directory could be picked up from outside the install. */ export declare function resolvePackagedDir(name: string): string | undefined; /** The walk itself, with an explicit starting point so it can be tested. */ export declare function findPackagedDirFrom(start: string, name: string): string | undefined;