import { getHeaders } from "./get-headers";
export function isPrefetch(requestOrHeaders) {
    let headers = getHeaders(requestOrHeaders);
    let purpose = headers.get("Purpose") ||
        headers.get("X-Purpose") ||
        headers.get("Sec-Purpose") ||
        headers.get("Sec-Fetch-Purpose") ||
        headers.get("Moz-Purpose") ||
        headers.get("X-Moz");
    return (purpose === null || purpose === void 0 ? void 0 : purpose.toLowerCase()) === "prefetch";
}
