import type { WatcherEvent } from '../../../types/file-hooks.js';
import type { WorkerRunResult, WorkerFinding } from '../../../types/workers.js';
/**
 * Returns true if the given path contains security-sensitive keywords.
 */
export declare function isSecuritySensitiveFile(path: string): boolean;
/**
 * Returns true if the given path is a dependency manifest or lockfile.
 */
export declare function isDependencyFile(path: string): boolean;
/**
 * Returns true if the security check is currently in cooldown for the given project.
 */
/**
 * Returns true if any project's security check is in cooldown (no arg),
 * or if the specific project's check is in cooldown (with arg).
 */
export declare function isInCooldown(projectPath?: string): boolean;
/**
 * Returns remaining cooldown time in seconds for the given project (or last project if omitted).
 */
export declare function getCooldownRemainingSeconds(projectPath?: string): number;
/**
 * Reset the security cooldown timestamp.
 * If projectPath is provided, resets only that project.
 * If omitted, resets all projects.
 * Useful for testing.
 */
export declare function resetSecurityCooldown(projectPath?: string): void;
/**
 * Reset security cooldown for all projects.
 * Useful for testing.
 */
export declare function resetAllSecurityCooldowns(): void;
/**
 * Build WorkerFindings for dependency file changes.
 */
export declare function buildDependencyHealthFindings(depFiles: string[]): WorkerFinding[];
/**
 * Get the cached result from the last security check run.
 * If projectPath is omitted, returns the most recently set result across all projects.
 */
export declare function getLastSecurityCheckResult(projectPath?: string): WorkerRunResult | null;
/**
 * Reset the security check result cache.
 * If projectPath is provided, clears only that project's cache.
 * If omitted, clears all projects.
 * Useful for testing.
 */
export declare function resetSecurityCheckCache(projectPath?: string): void;
/**
 * Reset security check result cache for all projects.
 * Useful for testing.
 */
export declare function resetAllSecurityCheckCaches(): void;
/**
 * Handle on-security-check event for security-sensitive file changes.
 * Implements a 5-minute cooldown to avoid repeated alerts.
 * Also detects dependency file changes and emits dependency-health findings.
 * Caches results as WorkerRunResult.
 * Fire-and-forget — all errors are caught with console.warn.
 */
export declare function handleOnSecurityCheck(event: WatcherEvent, projectPath: string): Promise<void>;
//# sourceMappingURL=on-security-check.d.ts.map