import { ReactNode } from 'react'; import { DOMProps, GlobalDOMAttributes } from '@react-types/shared'; import { GridListItemProps } from 'react-aria-components/GridList'; import { StyleString } from '@react-spectrum/s2/style'; interface HorizontalCardRenderProps { /** The size of the Card. */ size: 'XS' | 'S' | 'M' | 'L' | 'XL'; } export interface HorizontalCardProps extends Omit { /** The children of the Card. */ children: ReactNode | ((renderProps: HorizontalCardRenderProps) => ReactNode); /** * The size of the Card. * * @default 'M' */ size?: 'XS' | 'S' | 'M' | 'L' | 'XL'; /** * The amount of internal padding within the Card. * * @default 'regular' */ density?: 'compact' | 'regular' | 'spacious'; /** * The visual style of the Card. * * @default 'primary' */ variant?: 'primary' | 'secondary' | 'tertiary'; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } export interface BasicCardProps extends Omit { /** * The visual style of the Card. * * @default 'primary' */ variant?: 'primary' | 'secondary' | 'tertiary' | 'quiet'; /** Whether the card is in an error state. */ isInvalid?: boolean; } export declare const InternalCardViewContext: import("react").Context<{ ElementType: "div" | ((props: GridListItemProps & import("react").RefAttributes) => import("react").ReactElement> | null); layout: "grid" | "waterfall"; }>; export interface CardPreviewProps extends DOMProps { children: ReactNode; /** * Spectrum-defined styles, returned by the `style()` macro. */ styles?: StyleString; } export declare const CardPreview: import("react").ForwardRefExoticComponent>>; export declare const CollectionCardPreview: import("react").ForwardRefExoticComponent>>; export declare const HorizontalCard: import("react").ForwardRefExoticComponent>>; export declare const BasicHorizontalCard: import("react").ForwardRefExoticComponent>>; export {};