/** * DOM queries and CSS class tokens for the Table of Contents front-end script. */ export declare const TOC_SELECTORS: { readonly listRoot: '.et_pb_table_of_contents__list--root'; readonly nav: '.et_pb_table_of_contents__nav'; readonly emptyState: '.et_pb_table_of_contents__empty'; readonly link: '.et_pb_table_of_contents__link'; readonly semanticHeadings: 'h1, h2, h3, h4, h5, h6'; readonly visualBuilderHeading: '.et_pb_heading .et_pb_module_header'; readonly iframe: 'iframe'; /** * Canonical wrappers for authored post/body output. Used with `closest` *and* * `document.querySelector` — must omit `.et_builder_inner_content`, which appears in Theme Builder header, * footer, and body layouts; otherwise the first match in DOM order is often the header, not page content. */ readonly postContentMarkersPrimary: '[data-et-post-content], .et_pb_post_content, .wp-block-post-content, .et-l--post, .entry-content'; /** * Row/column inner wrapper (legacy layouts). Too ambiguous for cross-document scans; applied only after * primary markers fail, via ancestor `closest` on the TOC module. */ readonly layoutInnerContent: '.et_builder_inner_content'; /** Broader fallback when post-content wrappers are absent. */ readonly contentRootFallback: 'main, article, #main, .site-content, .et-l, body'; }; /** BEM prefix for `markerStyle` on list elements (`et_pb_table_of_contents__list--ordered`, etc.). */ export declare const TOC_LIST_MARKER_STYLE_CLASS_PREFIX = 'et_pb_table_of_contents__list--'; /** Valid `markerStyle` keys used for list modifier classes. */ export declare const TOC_LIST_MARKER_STYLES: string[]; /** Class toggled on the TOC link matching the viewport-active heading. */ export declare const TOC_LINK_ACTIVE_CLASS = 'et_pb_table_of_contents__link--active'; /** Class on the heading title span inside each TOC link row. */ export declare const TOC_LINK_TEXT_CLASS = 'et_pb_table_of_contents__link-text'; /** Module wrapper classname that forces headings inside the module into the TOC list. */ export declare const TOC_LIST_HEADING_INCLUDED_CLASS = 'et_pb_toc_list_included'; /** Module wrapper classname that forces headings inside the module out of the TOC list. */ export declare const TOC_LIST_HEADING_EXCLUDED_CLASS = 'et_pb_toc_list_excluded'; export declare const TOC_HEADING_TAG_PATTERNS: RegExp; export declare const TOC_TIMING: { readonly maxRenderAttempts: 300; /** Visual Builder preview sync retries (lower cap than front-end render). */ readonly maxPreviewAttempts: 40; readonly renderRetryDelayMs: 200; readonly viewportResyncDelayMs: 300; }; /** * Fallback format; shipped `edit.tsx` / PHP output supplies the translated `Heading %d` string. */ export declare const TOC_SCRIPT_DEFAULT_PLACEHOLDER_HEADING_FORMAT = 'Heading %d';