export declare function highlightSql(sql: string): import("hono/utils/html").HtmlEscapedString; export declare const uploadZoneScript = "(function () {\n var zone = document.getElementById(\"upload-zone\");\n var input = document.getElementById(\"upload-input\");\n if (!zone || !input) return;\n var url = zone.dataset.uploadUrl;\n\n function dispatch(name, detail) {\n zone.dispatchEvent(new CustomEvent(name, { bubbles: true, detail: detail }));\n }\n\n function validate(file) {\n var accept = input.accept;\n if (!accept) return true;\n var exts = accept.split(\",\").map(function (s) { return s.trim().replace(/^\\./, \"\").toLowerCase(); });\n var ext = file.name.split(\".\").pop().toLowerCase();\n return exts.indexOf(ext) !== -1;\n }\n\n function doUpload(file) {\n if (!validate(file)) {\n dispatch(\"upload-zone:error\", { message: \"Invalid file type. Accepted: \" + input.accept });\n return;\n }\n var fd = new FormData();\n fd.append(\"file\", file);\n zone.classList.add(\"uploading\");\n fetch(url, { method: \"POST\", body: fd })\n .then(function (r) {\n if (r.ok) {\n dispatch(\"upload-zone:success\", { file: file, response: r });\n } else {\n dispatch(\"upload-zone:error\", { message: \"Upload failed (\" + r.status + \")\" });\n }\n })\n .catch(function () {\n dispatch(\"upload-zone:error\", { message: \"Upload failed\" });\n })\n .finally(function () {\n zone.classList.remove(\"uploading\");\n });\n }\n\n zone.addEventListener(\"dragover\", function (e) {\n e.preventDefault();\n zone.classList.add(\"drag-over\");\n });\n zone.addEventListener(\"dragleave\", function () {\n zone.classList.remove(\"drag-over\");\n });\n zone.addEventListener(\"drop\", function (e) {\n e.preventDefault();\n zone.classList.remove(\"drag-over\");\n var file = e.dataTransfer && e.dataTransfer.files[0];\n if (file) doUpload(file);\n });\n input.addEventListener(\"change\", function () {\n if (input.files && input.files[0]) doUpload(input.files[0]);\n input.value = \"\";\n });\n})();"; export declare const tableTabsScript = "(function () {\n var nav = document.querySelector(\".table-tabs\");\n var wrap = nav && nav.parentElement;\n if (!nav || !wrap) return;\n function update() {\n var sl = nav.scrollLeft;\n var max = nav.scrollWidth - nav.clientWidth;\n wrap.classList.toggle(\"fade-left\", sl > 2);\n wrap.classList.toggle(\"fade-right\", max > 2 && sl < max - 2);\n }\n nav.addEventListener(\"scroll\", update);\n setTimeout(update, 50);\n window.addEventListener(\"popstate\", function () {\n location.reload();\n });\n})();"; //# sourceMappingURL=scripts.d.ts.map