/** Parse the @cortex-hook-version stamp from hook source, or null if absent/malformed. */ export declare function parseHookVersion(src: string): string | null; /** * Keep version-stamped hooks in HOOKS_DIR in sync with the shipped defaults. * * A default hook that carries an `// @cortex-hook-version YYYY.M.D` stamp is (re)written into * HOOKS_DIR whenever the shipped stamp is newer than the deployed one. A missing or unstamped * deployed copy counts as oldest, so legacy installs are brought under management on first run. * Unmanaged defaults (no stamp) are left to init's copy-if-missing (deployHooks/safeCopy) and are * never touched here. Idempotent and crash-safe via atomicWrite. * * `opts` exists for tests; production calls it with no args (real DEFAULTS_DIR/HOOKS_DIR). * Returns the list of hook filenames that were updated. */ export declare function syncManagedHooks(opts?: { srcDir?: string; dstDir?: string; }): Promise;