import type { ReactElement, ReactNode } from 'react'; import { type LinkTarget } from './AppLink.js'; declare const widthClasses: { sm: string; md: string; lg: string; fill: string; }; declare const paddingClasses: { none: string; sm: string; md: string; lg: string; }; declare const toneColors: { readonly accent: 'var(--theme-accent)'; readonly success: 'var(--theme-success)'; readonly warning: 'var(--theme-warning)'; readonly error: 'var(--theme-error)'; readonly info: 'var(--theme-info)'; }; /** A status's tone, or any CSS color a host picks, such as `var(--agent-color)`. */ export type CardTone = keyof typeof toneColors | (string & {}); export type CardSize = keyof typeof widthClasses; export type CardPadding = keyof typeof paddingClasses; export interface CardProps extends LinkTarget { children: ReactNode; /** Its width and padding: `sm` for a short form, `lg` for a wide one. `fill` is a * flat panel among the page's content, as wide as its column, with no shadow. */ size?: CardSize | undefined; /** The room inside, over the size's own: `none` for content ruled to the card's * edges, such as a table or a list; `sm` for dense content. */ padding?: CardPadding | undefined; /** Rules each child off from the next, for a list of rows. */ divided?: boolean | undefined; /** A stronger shadow, for a card standing alone on a page, such as sign-in. */ elevated?: boolean | undefined; /** Tints the border in the accent, setting the card apart from its siblings, * such as a thread shared with the reader. */ highlight?: boolean | undefined; /** Tints the border while a field inside has focus, for a card that frames an * input, such as a composer. */ focusWithin?: boolean | undefined; /** Tints the border in a color, setting the card apart by what it is, such as the work of * one kind of author: a status's tone, or any CSS color, such as `var(--agent-color)`. * It is `--card-tone` inside the card, for its own content to use. `highlight` deepens it. */ tone?: CardTone | undefined; /** With `tone`, a faint fill of it too, for a card that should stand out at a glance. */ tinted?: boolean | undefined; /** Renders the card as this element, such as a button, a list or a section. */ render?: ReactElement | undefined; /** The whole card presses: it lifts on hover and shows focus. On by default for * a card with `href` or `render`; false for a `render` that isn't a control, * such as `