import type { PropsWithoutRef, ReactNode, Ref } from 'react'; import type { AdditionalInfoProps, BannerProps, TestIdProp } from '@pega/cosmos-react-core'; export type DetailsProps = TestIdProp & { /** * FieldValueItems to display as highlighted data above children */ highlightedData?: ReactNode[]; /** Copy placed in paragraph below the name */ description?: string; /** * Template children separated into 1-3 columns {a, b, c} */ columns: { a: ReactNode; b?: never; c?: never; } | { a: ReactNode; b: ReactNode; c?: never; } | { a: ReactNode; b: ReactNode; c: ReactNode; }; /** Arrangement of columns */ arrangement?: 'narrowWide' | 'wideNarrow'; /** Style variant applied to element */ variant?: 'field-group'; banner?: BannerProps; ref?: Ref; } & ({ /** Text used as heading of list */ name: string; /** Pass a heading and content to show additional information on the list */ additionalInfo?: { heading?: AdditionalInfoProps['heading']; content: AdditionalInfoProps['children']; }; /** * Whether the items children can be collapsed (only applies if name is provided) * @default false */ collapsible?: boolean; defaultCollapsed?: boolean; } | { name?: undefined; additionalInfo?: never; collapsible?: never; defaultCollapsed?: never; }); declare const _default: import("react").ForwardRefExoticComponent & import("react").RefAttributes> & { getTestIds: (testIdProp?: TestIdProp["testId"]) => import("@pega/cosmos-react-core").TestIdsRecord; }; export default _default; //# sourceMappingURL=Details.d.ts.map