/** * @fileoverview Context mutation safety check — flags direct mutation of * request/execution context objects, which causes side effects across * middleware in concurrent server environments. */ import { type CheckViolation } from '@opensip-cli/fitness'; /** * Pure analysis function. Exported so unit tests can exercise the * detection logic without standing up the full Check framework * (defineCheck wraps `analyze` into an `execute` closure that requires * an ExecutionContext to invoke). */ export declare function analyzeContextMutation(content: string, filePath: string): CheckViolation[]; /** * Check: resilience/context-mutation * * Detects potentially unsafe mutations of request/execution context objects. * Context should be immutable to prevent side effects across middleware. */ export declare const contextMutationCheck: import("@opensip-cli/fitness").Check; //# sourceMappingURL=context-mutation.d.ts.map