import { z } from "zod"; /** * Pure regex search over a Swift file. No SourceKit-LSP involvement, no * IndexStoreDB. Useful for catching what LSP misses: closure capture lists * (`[weak self]`, `[unowned self]`), `Task { ... self ... }` blocks, custom * patterns the agent comes up with from a leak chain. */ export declare const swiftSearchPatternSchema: z.ZodObject<{ filePath: z.ZodString; pattern: z.ZodString; flags: z.ZodOptional; maxMatches: z.ZodDefault; }, "strip", z.ZodTypeAny, { pattern: string; filePath: string; maxMatches: number; flags?: string | undefined; }, { pattern: string; filePath: string; flags?: string | undefined; maxMatches?: number | undefined; }>; export type SwiftSearchPatternInput = z.infer; export interface SwiftSearchPatternMatch { line: number; character: number; text: string; /** Trimmed source line for context. */ snippet?: string; } export interface SwiftSearchPatternResult { ok: boolean; filePath: string; matches: SwiftSearchPatternMatch[]; truncated: boolean; } export declare function swiftSearchPattern(input: SwiftSearchPatternInput): Promise;