/**
* Body custom code (the slider bundle, chat widgets, the editor's slider
* patcher) used to be written into _document as live HTML after
* , so it ran at parse time — before React hydrated the page.
* A widget that rewrites the DOM that early (Swiper adds classes and styles
* to every slide) makes React report a hydration mismatch on each element it
* touched. _document now ships that code inert inside a , and the
* TqBodyCode _app sibling unpacks it in an effect, which runs only after the
* hydration commit. blocks stay live in the document: they exist
* for visitors without JavaScript, who could never unpack a template.
* NO backticks in this file's comments — the component code is a template literal.
*/
export declare const BODY_CODE_TEMPLATE_ATTR = "data-tq-body-code";
export declare const splitBodyCustomCode: (body: string) => {
noscript: string;
deferred: string;
};
/** The HTML _document writes for the body custom code: live noscript, inert everything else. */
export declare const wrapBodyCustomCode: (body: string) => string;
/**
* The unpacking as plain script, so the same code is unit-tested against a
* DOM and shipped inside the component. Scripts are recreated because a
* cloned script never executes: external ones keep document order
* (async=false), inline ones run at insertion — a helper placed before a
* library still runs first, exactly as it did at parse time.
*
* An inline script names the document as its source. Chromium reports no file
* for an error thrown by a script inserted after the page was parsed (or by a
* callback it registered), and the inline script error guard of _document
* (teleport-shared, inline-script-error-guard) knows the project's own scripts
* by the document's address: unnamed, a custom script that throws would cover
* the page with the dev server's error overlay again. Data blocks (JSON-LD,
* templates) are not scripts and stay exactly as written.
*/
export declare const BODY_CODE_UNPACK_SCRIPT: string;
export declare const generateBodyCodeComponentCode: () => string;
//# sourceMappingURL=body-code-component.d.ts.map