import { type JSX, type ReactNode } from 'react'; import { type DisclosureProps as RACDisclosureProps } from 'react-aria-components'; import type { CommonProps, Key } from '../types.js'; import { type DisclosureSize, type DisclosureVariant } from './context.js'; export interface DisclosureProps extends Omit, Pick { /** A unique ID for the disclosure when used within a `DisclosureGroup`. */ id?: Key; /** The content to display when the disclosure is expanded. */ children: ReactNode; /** * Determines the visual appearance of the disclosure. * If the disclosure is part of a group, this prop has no effect - provide `variant` to `DisclosureGroup` instead. * @default 'base' */ variant?: DisclosureVariant; /** * Determines the size of the disclosure. * If the disclosure is part of a group, this prop has no effect - provide `size` to `DisclosureGroup` instead. * @default 'medium' */ size?: DisclosureSize; /** The title that is always visible in the disclosure header. */ title: string; /** * An icon displayed before the disclosure title. * * Should not be used when size is set to `'small'` as icons won't be displayed at this size. */ iconStart?: ReactNode; /** * An icon displayed after the disclosure title. * * Should not be used when size is set to `'small'` as icons won't be displayed at this size. */ iconEnd?: ReactNode; /** * The badge displayed in the disclosure header. * * Should not be used when size is set to `'small'` as the badge won't be displayed at this size. */ badge?: ReactNode; /** The actions displayed in the disclosure header. */ actions?: ReactNode; } /** * Displays a collapsible section of content. * * See [disclosure usage guidelines](https://ui.cimpress.io/components/disclosure/). */ declare const _Disclosure: (props: DisclosureProps & import("react").RefAttributes & import("../../with-style-props.js").StyleProps) => JSX.Element | null; export { _Disclosure as Disclosure }; //# sourceMappingURL=disclosure.d.ts.map