import { SvelteComponentTyped } from "svelte";
export type SectionLevel = 1 | 2 | 3 | 4 | 5 | 6;
export type CarbonSectionContext = {
$internalLevel: any;
};
export type SectionProps = {
/**
* Specify the heading level the section should start at.
* When nested, child sections automatically increment from this level.
* Levels are capped at 6 (h6).
* @default 1
* @example
* ```svelte
*
* Starts at Heading 5
*
*
* ```
*/
level?: SectionLevel;
/**
* Specify the HTML tag name to render instead of the default `section` element.
* Useful when you need to use a different semantic element while maintaining
* the heading level context functionality.
* @default section
* @example
* ```svelte
*
* ```
*
* @example
* ```svelte
*
* ```
*/
tag?: keyof HTMLElementTagNameMap;
children?: (this: void) => void;
};
export default class Section extends SvelteComponentTyped<
SectionProps,
Record,
{ default: Record }
> {}