/** * Git hook script templates */ /** * Pre-commit hook script for Lost Keys * This script runs before each git commit to scan for secrets */ export declare const PRE_COMMIT_HOOK = "#!/bin/sh\n# Lost Keys - Pre-commit secret scanner\n# Auto-generated by: lost-keys init\n\n# Run Lost Keys scan on staged files\nnpx lost-keys scan --staged --block\n\n# Exit code:\n# 0 = No secrets found (allow commit)\n# 1 = Secrets found (block commit)\n# 2 = Scan error (block commit for safety)\n"; /** * Lost Keys hook identifier comment * Used to detect if Lost Keys is already installed in a hook */ export declare const HOOK_IDENTIFIER = "# Lost Keys - Pre-commit secret scanner"; /** * Generate Husky hook content * @returns Hook content for Husky */ export declare function generateHuskyHook(): string; /** * Generate native git hook content * @returns Hook content for native git hooks */ export declare function generateNativeHook(): string; /** * Check if hook content already includes Lost Keys * @param hookContent - Existing hook content * @returns True if Lost Keys is already installed */ export declare function hasLostKeysHook(hookContent: string): boolean; //# sourceMappingURL=templates.d.ts.map