import { type MouseEventHandler, type ReactNode } from 'react'; /** The height a collapsible panel animates as it opens and closes. It clips * only while it moves, so focus rings and overflowing content show once open. */ export declare const collapsePanelClassName = "h-(--collapsible-panel-height) transition-[height,opacity] duration-200 ease-out motion-reduce:transition-none data-starting-style:h-0 data-starting-style:overflow-hidden data-starting-style:opacity-0 data-ending-style:h-0 data-ending-style:overflow-hidden data-ending-style:opacity-0"; export interface DisclosureProps { /** The line that toggles the detail: a label, or a row of status and label. */ summary: ReactNode; open?: boolean | undefined; onOpenChange?: ((open: boolean) => void) | undefined; defaultOpen?: boolean | undefined; /** Nothing to reveal: the summary shows without a toggle. */ disabled?: boolean | undefined; /** Keep the detail mounted while folded, so its own state survives. */ keepMounted?: boolean | undefined; className?: string | undefined; /** On the toggle: its width (`w-full` for a whole row), text size and color. */ summaryClassName?: string | undefined; /** On the revealed detail: its indent and spacing. */ panelClassName?: string | undefined; /** False drops the chevron, for a row that reads as a toggle on its own, such as a whole * list row that opens its detail. */ chevron?: boolean | undefined; /** Controls beside the summary, outside the toggle, so a row can hold buttons without * nesting them in it. */ actions?: ReactNode; /** Controls that read as part of the summary, right after it on its line, such as a button * that says why a row failed. They sit outside the toggle, so no button holds another and * each is its own stop for Tab; a click on the rest of the line still toggles. */ summaryControls?: ReactNode; /** Text beside the summary that gives way to it, such as a cluster's address beside its name. * It fills the room the summary and actions leave, ends in an ellipsis when that room runs * short, and hides when the room is too narrow to read (under 5rem). The summary shortens * only once it and the actions no longer fit. */ aside?: ReactNode; /** On the whole disclosure, summary and detail, such as a row's own menu. */ onContextMenu?: MouseEventHandler | undefined; children: ReactNode; } /** A line inside content that reveals more detail beneath it, such as a tool * call's arguments or a model's reasoning. For a titled part of a page or * form, which belongs in the page's outline, use Section. */ export declare function Disclosure({ summary, open, onOpenChange, defaultOpen, disabled, keepMounted, className, summaryClassName, panelClassName, chevron, actions, summaryControls, aside, onContextMenu, children, }: DisclosureProps): import("react").JSX.Element; /** The revealing panel alone, for a toggle that lives elsewhere, such as a * tree row's chevron that names this panel with `aria-controls`. */ export declare function DisclosurePanel({ open, id, keepMounted, className, children, }: { open: boolean; id?: string | undefined; keepMounted?: boolean | undefined; className?: string | undefined; children: ReactNode; }): import("react").JSX.Element;