import type { CodePatcher } from "@opennextjs/aws/build/patch/codePatcher.js"; export declare const rule = "\nrule:\n kind: await_expression\n inside:\n kind: if_statement\n stopBy: end\n has:\n field: condition\n stopBy: end\n pattern: $$$_.trustHostHeader\n has:\n kind: call_expression\n all:\n - has: { kind: identifier, pattern: fetch}\n - has:\n kind: arguments\n all:\n - has:\n kind: object\n all:\n - has:\n kind: pair\n all:\n - has: { kind: property_identifier, regex: method }\n - has: { kind: string, regex: 'HEAD'}\n - has:\n kind: pair\n all:\n - has: { kind: property_identifier, regex: headers}\n - has: { kind: identifier, pattern: $HEADERS}\n - has:\n kind: template_string\n all:\n - has: { kind: string_fragment, regex: ^https://$ }\n - has:\n kind: template_substitution\n all:\n - has: { kind: identifier, stopBy: end, pattern: $REQ }\n - has: { kind: property_identifier, regex: ^headers$, stopBy: end }\n - has: { kind: property_identifier, regex: ^host$, stopBy: end }\n - has:\n kind: template_substitution\n pattern: $URL_PATH\n has:\n kind: identifier\n\nfix: await (await import(\"@opennextjs/cloudflare\")).getCloudflareContext().env.WORKER_SELF_REFERENCE.fetch(`${$REQ.headers.host.includes(\"localhost\") ? \"http\":\"https\" }://${$REQ.headers.host}$URL_PATH`,{method:'HEAD', headers:$HEADERS})\n"; export declare const patchResRevalidate: CodePatcher;