import type { Catalog, MotionConfig, SiteConfig } from "../types.ts"; export type FlattenResult = { html: string; used: string[]; usesMotion: boolean; usesLeadForm: boolean; }; type AttrMap = Record; export declare function resolveInstanceMotion(site: SiteConfig, component: string, attrs: AttrMap): Required; /** Apply authoring-tag `variant` / `id` onto the first root element of a component. */ export declare function applyRootAttrs(html: string, component: string, attrs: AttrMap): string; /** * Expand authoring tags that match catalog component names into flattened HTML. * Nested components are expanded (depth-limited). */ export declare function flattenBody(body: string, catalog: Catalog, site: SiteConfig, depth?: number): FlattenResult; /** Wrap non-chrome regions in
. */ export declare function wrapMain(flattened: string, catalog: Catalog): string; /** Legacy transport marker. Registration plus Turnstile is required to submit. */ export declare function rewriteLeadForms(html: string, kernelOrigin: string, pagePath: string): string; /** Nonvisual section metadata for design-run comparison. Ordinary sites omit candidate IDs. */ export declare function instrumentSections(html: string, site: SiteConfig): string; export {};