export interface WiredHook { /** The settings file it is in. */ file: string; event: string; /** What it runs: `orient --inject`, `orient --json`, `hook `, … */ step: string; command: string; /** Written by `openlore install` (it carries the `_openlore` marker). */ marked: boolean; } export interface HookWiringHealth { hooks: WiredHook[]; /** Absolute runtime paths a wired command names that do not exist. */ missing: Array<{ hook: WiredHook; path: string; }>; /** Event + step pairs that run more than one distinct OpenLore command. */ duplicates: Array<{ event: string; step: string; hooks: WiredHook[]; }>; } /** Split a shell command into words, honoring single and double quotes. */ export declare function shellWords(command: string): string[]; /** The OpenLore step a command runs, or undefined when it is not an OpenLore command. */ export declare function openloreStep(command: string): string | undefined; /** Assess the hooks in these settings files (user scope first, then project). */ export declare function assessHookWiring(files: readonly string[]): Promise; /** Whether a command is the user-scope form, which stands down for a repository's own wiring. */ export declare function isUserScopeCommand(command: string): boolean; /** * True when the repository's own Claude settings (`.claude/settings.json` or * `settings.local.json` in any of `dirs`) wire this OpenLore step with a repo-scope command. The * user-scope command then does nothing, so a repository wired at both scopes gets each receipt * once (change: user-scope-loop-hooks). Synchronous and cheap: it runs on every hook event. */ export declare function repoWiresStep(dirs: ReadonlyArray, step: string): boolean; /** The Claude Code settings files that can hold hooks for this repository. */ export declare function claudeSettingsFiles(rootPath: string, home: string): string[]; //# sourceMappingURL=hook-wiring-health.d.ts.map