import type { WatcherEvent } from '../../../types/file-hooks.js';
import type { WorkerRunResult } from '../../../types/workers.js';
/** Default drift threshold: 10% */
export declare const DEFAULT_DRIFT_THRESHOLD = 0.1;
/**
 * Returns true if the given path is related to a spec file.
 * Matches planu/specs/** or files matching common spec patterns.
 */
export declare function isSpecRelatedFile(path: string): boolean;
/**
 * Returns true if the given path is security-sensitive.
 * Detects .env files, auth/config/secrets paths, etc.
 */
export declare function isSecuritySensitiveFilePath(path: string): boolean;
/**
 * Compute drift score as a ratio of changed spec criteria to total criteria.
 * specCriteria: total number of acceptance criteria
 * fileIndex: number of spec-related changed files
 */
export declare function computeDriftScore(specCriteria: number, fileIndex: number): number;
/**
 * Find security-sensitive paths among changed files.
 */
export declare function detectSecuritySensitivePaths(changedFiles: string[]): string[];
/**
 * Get the cached result from the last push check run.
 * If projectPath is omitted, returns the most recently set result across all projects.
 */
export declare function getLastPushCheckResult(projectPath?: string): WorkerRunResult | null;
/**
 * Reset the push check result cache.
 * If projectPath is provided, clears only that project's cache.
 * If omitted, clears all projects.
 * Useful for testing.
 */
export declare function resetPushCheckCache(projectPath?: string): void;
/**
 * Reset push check result cache for all projects.
 * Useful for testing.
 */
export declare function resetAllPushCheckCaches(): void;
/**
 * Handle on-push-check event.
 * Performs drift detection and security-sensitive path detection.
 * Caches results as WorkerRunResult and emits WorkerFindings via console.warn.
 * Fire-and-forget — all errors are caught with console.warn.
 */
export declare function handleOnPushCheck(event: WatcherEvent, projectPath: string, driftThreshold?: number): Promise<void>;
//# sourceMappingURL=on-push-check.d.ts.map