/** * Resolve the Mémoire package root — the directory that contains * `skills/`, `notes/`, `plugin/`, and `package.json`. * * Works in three modes: * 1. tsx/dev: walks up from src/utils/asset-path.ts → repo root. * 2. npm install: walks up from dist/utils/asset-path.js → package root. * 3. Compiled bin: assets are sidecar next to the executable (bun compile * virtualizes `import.meta.url`, so fall back to * `dirname(process.execPath)`). * * Honors the `MEMOIRE_PACKAGE_ROOT` env var as an override for tests and * edge-case deployments. */ export declare function packageRoot(): string; /** Resolve a path relative to the package root. */ export declare function packagePath(...segments: string[]): string; /** Reset the cached root — test-only. */ export declare function __resetPackageRootCache(): void;