export interface HookEntry { command?: string; timeout?: number; [key: string]: unknown; } /** * Where the bundled cursor-hooks templates sit, relative to this module. * * This module compiles to `packages/cli/dist/lib/`, and the templates ship at * `packages/cli/templates/` (package.json `files: ["dist","templates"]`). That * is TWO levels up, not one. The old code hopped once — landing on * `dist/templates/cursor-hooks`, which has never existed — so * `--install-cursor-hooks` and `setup-hooks` printed "templates not found" for * every user, including in-repo. The comment beside it read * "dist/lib -> dist/../templates", which is the mistake stated out loud. * * Two levels is also correct under vitest, where `__dirname` is * `packages/cli/src/lib`. Exported so both layouts can be asserted rather than * one being tested and the other shipped. */ export declare function bundledCursorHooksDirFrom(baseDir: string): string; export declare function getBundledCursorHooksTemplateDir(): string | null; export declare function findEnterpriseSkillsHubRoot(startDir?: string): string | null; /** * Prefer bundled templates (npm install), then hub checkout for dev. */ export declare function resolveCursorHooksTemplateDir(projectRoot?: string): string | null; /** * Merge enterprise-skills hook entries into .cursor/hooks.json (dedupe by `command`). * Backs up an existing file to hooks.json.bak. if present. */ export declare function mergeEnterpriseSkillsHooksJson(projectRoot: string, snippetPath: string): { ok: boolean; hooksPath: string; message: string; }; export interface InstallCursorHooksResult { ok: boolean; message: string; hooksJsonMerged?: boolean; configCreated?: boolean; configUpdated?: boolean; } /** * Copy hook scripts and merge hooks.json; create orchestration-hooks.json if missing. */ export declare function installOrchestrationCursorHooks(projectRoot: string, templateDir: string): InstallCursorHooksResult; //# sourceMappingURL=cursor-hooks.d.ts.map