/** * Section spec generator — assembles block-type-agnostic section specifications * from extracted content, computed styles, and page outline data. * * The spec is a faithful representation of the source section, NOT a pre-mapped * prop bag. The LLM decides whether to use an existing block or code a new one. */ import type { ExtractedSection, SectionStyles, PageOutline, SectionSpec, FullPageScrape } from "./types.ts"; /** * Build a block-type-agnostic section spec from extracted content, computed styles, * and page outline data. The LLM uses this to decide: existing block or custom block. */ export declare function buildSectionSpec(section: ExtractedSection, sectionStyles?: SectionStyles, outlineSection?: PageOutline["sections"][number]): SectionSpec; /** * Build section specs for all sections of a scraped page. * * Uses visual sections (from bounding-box gap analysis) as the primary source * when available — this is CMS-agnostic and correctly identifies sections on * sites that don't use semantic HTML tags. Falls back to regex-based * extractSections() when visual data isn't available. */ export declare function buildPageSpecs(scrape: FullPageScrape): SectionSpec[];