import { HTMLAttributes, ReactNode } from 'react';
export interface SectionProps extends Omit, 'title' | 'children' | 'onToggle'> {
title?: ReactNode;
children: ReactNode;
/** `plain` sits on the page background instead of in a card. */
variant?: 'card' | 'plain';
/** Figma elevation/xs on the card. */
elevated?: boolean;
/**
* The card collapses to its title: `'always'` at every width, `'desktop-open'` only below desktop (open from
* desktop up until the first toggle; uncontrolled only, with `open` it behaves as `'always'`). Needs a `title`.
*/
collapsible?: 'always' | 'desktop-open';
/** Controlled open state of a collapsible section. Omit to let the component manage it. */
open?: boolean;
defaultOpen?: boolean;
onToggle?: (open: boolean) => void;
/** Shows skeleton lines instead of `children`. */
loading?: boolean;
/** Skeleton lines while loading. Pick what makes the reserved height match the real content. */
skeletonRows?: number;
/** Heading element of the title. */
headingLevel?: 'h2' | 'h3' | 'h4';
id?: string;
className?: string;
/** Test-automation hook on the section; the toggle gets `-toggle`. */
dataCy?: string;
}
/**
* A titled content block: a card (or plain) with a header rule, optionally collapsible and with a loading state.
*/
export declare const Section: import('react').ForwardRefExoticComponent>;