export interface TrustedHookLauncher { node: string; cli: string; } /** Resolve the exact external Node + OpenLore entry used by an installed hook. */ export declare function resolveTrustedHookLauncher(rootPath: string): Promise; export declare function shellQuote(value: string): string; export declare function renderTrustedHookCommand(launcher: TrustedHookLauncher, args: string[]): string; export interface GitHookTarget { effectiveHooksDir: string; hookPath: string; executionPath: string; resolvedByGit: boolean; manager?: 'husky' | 'lefthook' | 'disabled' | 'unavailable' | 'unconfined'; canInstall: boolean; } export declare function resolveGitPath(rootPath: string, name: string): Promise; export declare function resolveGitHookTarget(rootPath: string, hookName: 'pre-commit' | 'post-commit'): Promise; export interface HookFileUpdateResult { status: 'updated' | 'unchanged' | 'unavailable'; reason?: string; } /** Serialize cross-process hook edits and publish each rewrite with one atomic rename. */ export declare function updateHookFile(hookPath: string, update: (existing: string | null) => string | null | undefined): Promise; export declare function isResolvedGitRepository(rootPath: string, target: GitHookTarget): Promise; export declare function displayHookPath(path: string): string; export declare function hookManagerWarning(target: GitHookTarget, wiringLine: string): string; //# sourceMappingURL=git-hooks.d.ts.map