/**
* Detects client-side redirect stubs — HTTP-200 pages that redirect via
* (+ ) or a top-of-document JS
* location assignment — so the freshness fetcher never hashes a contentless
* stub as authoritative source content.
* See docs/superpowers/specs/2026-06-19-owasp-freshness-fix-design.md.
*/
/** Thrown by the fetcher when a source is a client-side redirect stub that
* cannot be safely followed. The CLI converts this into a fail-closed skip. */
export declare class SourceUnusableError extends Error {
readonly url: string;
readonly detail: string;
constructor(url: string, detail: string);
}
export type RedirectClassification = {
kind: 'accept';
} | {
kind: 'follow';
target: string;
} | {
kind: 'unusable';
detail: string;
};
export declare function classifyRedirect(body: string, contentType: string | null, finalUrl: string): RedirectClassification;
//# sourceMappingURL=redirect-classifier.d.ts.map