import type { ErrorPattern, RecoveryError, RecoveryErrorCategory } from "./types.ts"; export declare class PatternRegistry { private patterns; register(pattern: ErrorPattern): void; /** Detect all matching errors (a single error may match multiple patterns) */ detect(error: unknown): RecoveryError[]; /** Detect the first matching error */ detectFirst(error: unknown): RecoveryError | null; /** Detect errors of a specific category */ detectCategory(error: unknown, category: RecoveryErrorCategory): RecoveryError | null; clear(): void; } export declare function createDefaultPatterns(): ErrorPattern[]; //# sourceMappingURL=error-detection.d.ts.map