import type { OnSaveHookResult, OnSaveContext } from '../../../types/file-hooks.js';
/**
 * Extract @spec annotations from file content.
 */
export declare function extractSpecAnnotations(content: string): string[];
/**
 * Handle on-save event for a file.
 * - Validates @spec annotations
 * - Computes SHA-256 hash and compares with stored snapshot
 * - Reports drift delta
 */
export declare function handleOnSave(relPath: string, ctx: OnSaveContext): Promise<OnSaveHookResult>;
/**
 * Get the stored hash for a file path.
 */
export declare function getStoredHash(relPath: string): string | undefined;
/**
 * Set a hash snapshot (useful for initialization / testing).
 */
export declare function setStoredHash(relPath: string, hash: string): void;
/**
 * Remove a hash snapshot.
 */
export declare function removeStoredHash(relPath: string): boolean;
/**
 * Clear all stored hashes.
 */
export declare function clearStoredHashes(): void;
//# sourceMappingURL=on-save.d.ts.map