import type { OnCommitHookResult, OnCommitContext } from '../../../types/file-hooks.js';
/**
 * Returns true if the given path is related to a spec file.
 */
export declare function isSpecRelatedFile(path: string): boolean;
/**
 * Detect drift in a commit by checking spec-related changed files.
 * Returns an array of warning messages if drift exceeds threshold, otherwise empty array.
 */
export declare function detectCommitDrift(specFiles: string[], threshold?: number): string[];
/**
 * Install a Planu post-commit git hook.
 * If a hook already exists, appends the Planu section.
 */
export declare function installGitHook(projectPath: string): Promise<{
    installed: boolean;
    path: string;
}>;
/**
 * Uninstall the Planu post-commit hook section.
 * Removes only the Planu-marked section, preserving other hooks.
 */
export declare function uninstallGitHook(projectPath: string): Promise<{
    uninstalled: boolean;
    path: string;
}>;
/**
 * Handle on-commit event.
 * - Gets committed files
 * - Runs spec integrity check
 * - Identifies specs that may need reconciliation
 * - Non-blocking, async
 */
export declare function handleOnCommit(ctx: OnCommitContext): Promise<OnCommitHookResult>;
//# sourceMappingURL=on-commit.d.ts.map