import { type ReactNode } from 'react'; export type SectionVariant = 'plain' | 'bare' | 'card'; export type SectionTone = 'default' | 'error'; export type SectionSpacing = 'regular' | 'tight'; export interface SectionProps { title: ReactNode; /** Under the title in muted text, saying what the section holds; it describes * the section, and its toggle, to assistive technology. */ description?: ReactNode; /** Beside the title, outside the toggle, such as an info tip or a count. */ beside?: ReactNode; /** At the header's far end, such as an add button or a range picker. */ actions?: ReactNode; /** `plain` rules the title off from the content under it; `bare` sets the title * over the content with no rule; `card` frames the section as a panel. */ variant?: SectionVariant | undefined; /** `error` marks a card of irreversible actions, such as deleting what the page * shows: its border and title turn the error color over a clear body. */ tone?: SectionTone | undefined; /** A card's content reaches its edges, such as a table or a list ruled to its * sides, instead of sitting inset under the header. */ flush?: boolean | undefined; /** The room between a `plain` section's rule and its content. `tight` suits content that * spaces itself tightly, such as a form with its labels over its fields, so the first row * sits as far under the rule as the rows under it sit under one another. */ spacing?: SectionSpacing | undefined; /** False shows the content always, under a title that doesn't fold. */ collapsible?: boolean | undefined; /** Hold the state, such as a remembered preference, with `open` and * `onOpenChange`; or leave it to the section with `defaultOpen`. */ open?: boolean | undefined; onOpenChange?: ((open: boolean) => void) | undefined; defaultOpen?: boolean | undefined; /** The heading level the title sits at in the page's outline. */ headingLevel?: 2 | 3 | 4 | undefined; /** On the section, so a link or a scroll can target it. */ id?: string | undefined; className?: string | undefined; children: ReactNode; } /** A titled part of a page or form, its title a heading in the page's outline, * that can fold away. Folding keeps the content mounted, so fields hold their * values and validation while closed. For a line inside content that reveals * more detail, use Disclosure. In a `DescriptionListGroup`, the description lists * in it share the group's label column. */ export declare function Section({ title, description, beside, actions, variant, tone, flush, spacing, collapsible, open, onOpenChange, defaultOpen, headingLevel, id, className, children, }: SectionProps): import("react").JSX.Element;