import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; export type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6; type $RestProps = SvelteHTMLElements["h1"] & SvelteHTMLElements["h2"] & SvelteHTMLElements["h3"] & SvelteHTMLElements["h4"] & SvelteHTMLElements["h5"] & SvelteHTMLElements["h6"]; type $Props = { /** * Set the visual size using a Carbon type token. The semantic heading level * stays driven by `Section` context; this only changes how the heading looks. */ type?: "heading-compact-01" | "heading-compact-02" | "heading-01" | "heading-02" | "heading-03" | "heading-04" | "heading-05" | "heading-06" | "heading-07" | "fluid-heading-03" | "fluid-heading-04" | "fluid-heading-05" | "fluid-heading-06" | "fluid-display-01" | "fluid-display-02" | "fluid-display-03" | "fluid-display-04" | undefined; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type HeadingProps = Omit<$RestProps, keyof $Props> & $Props; export default class Heading extends SvelteComponentTyped< HeadingProps, Record, { default: Record } > {}