/** * Per-pattern fix templates: Swift code snippets showing the typical * before/after for each cycle pattern in the catalog. Pairs with * `staticAnalysisHints.ts` and `classifyCycle.PATTERNS` to give the * agent a concrete code example it can adapt to the user's context. * * Templates are deliberately minimal — just enough to demonstrate the * shape of the fix. The agent fills in real type/method names from the * surrounding code via the SourceKit-LSP tools. */ export interface FixTemplate { /** Optional one-line description if the snippet alone needs framing. */ context?: string; /** Code that shows the leak shape. */ before: string; /** Code that fixes it. */ after: string; /** * Optional notes — e.g. "this only works on iOS 14+" or * "the WeakProxy class is a one-time helper you add to your codebase". */ notes?: string; } /** Returns the fix template for a given pattern, or null if unknown. */ export declare function getFixTemplate(patternId: string): FixTemplate | null; /** All known pattern ids that have templates. Used in tests for coverage assertion. */ export declare function knownTemplatePatternIds(): string[];