/** * Dead link detector — tracks broken links discovered during crawl. * * A "dead link" is a URL that: * - Returns 404, 410, or other 4xx/5xx responses * - Times out after maxRetries * - Redirects to an error page (detected by title heuristic) * * Results: list of broken links with source page, status code, and anchor text. * Used for: SEO audit export, test report enrichment. */ export interface DeadLink { url: string; statusCode: number; sourceUrl?: string; anchorText?: string; checkedAt: string; reason: 'http-error' | 'timeout' | 'dns-error'; } export declare class DeadLinkTracker { private deadLinks; private checked; record(url: string, statusCode: number, source?: { sourceUrl?: string; anchorText?: string; }): void; recordTimeout(url: string, sourceUrl?: string): void; getDeadLinks(): DeadLink[]; isKnownBroken(url: string): boolean; stats(): { total: number; by404: number; by5xx: number; byTimeout: number; }; toCsv(): string; }