/** * Puts named-slot content back where a web component expects it. Astro * hands a renderer each named slot as an HTML string, with the `slot` * attribute its children were written with taken off. A custom element * slots light DOM children by that attribute, so it goes back on: on every * top-level element that doesn't carry one, and on a `` around * top-level text, which can't carry an attribute of its own. * * A scanner for the top level only, not a parser: it reads tags, comments * and raw-text elements well enough to skip each top-level element whole, * and leaves everything inside as written. Dependency-free, so the client * renderer uses it too. */ /** Assigns every top-level node of `html` to the slot `name`. */ export declare const assignSlot: (html: string, name: string) => string; //# sourceMappingURL=slots.d.ts.map