/** * Danger Zone Service * * Manages protected code regions that should not be modified without explicit confirmation */ import type { DangerZone, DangerZoneCheckResult } from "../types/danger-zone.js"; /** * Service for managing danger zones in the codebase. * * Tracks and validates critical code sections that require extra care * when modifying, such as security-sensitive or complex legacy code. */ export declare class DangerZoneService { private projectRoot; private configPath; /** * @param projectRoot - Root directory of the project */ constructor(projectRoot: string); /** * Get all danger zones from both comments and config */ getAllDangerZones(): Promise; /** * Load danger zones from config file */ loadConfigMarkers(): Promise; /** * Scan a file for comment-based danger zone markers * Supports: // @cortex-protected, /* @cortex-protected *\/, # @cortex-protected */ scanCommentMarkers(filePath: string): Promise; /** * Check if changed files intersect with any danger zones */ checkChangedFiles(changedFiles: string[]): Promise; /** * Format danger zone warning message */ private formatDangerZoneWarning; /** * Mark a new danger zone in config */ markDangerZone(zone: { file: string; startLine?: number; endLine?: number; reason: string; }): Promise; /** * Remove a danger zone from config */ unmarkDangerZone(file: string, line?: number): Promise; /** * Get danger zones for a specific file */ getFilesDangerZones(filePath: string): Promise; } //# sourceMappingURL=danger-zone-service.d.ts.map