import { type ReactNode } from 'react'; import { type Tone } from './tone.js'; /** A callout's tone: `default` for a plain note, a status, or `muted` for a quiet * note that something is read-only, such as a page only admins can change. */ export type CalloutTone = Extract; export interface CalloutProps { tone?: CalloutTone | undefined; /** A bold first line that says what happened; the children explain it. */ title?: ReactNode; children?: ReactNode; /** The one thing the reader can do about it, such as a retry button. */ action?: ReactNode; /** Adds a close button, for a message the reader can put away. */ onDismiss?: (() => void) | undefined; /** Replaces the tone's icon; false shows none. */ icon?: ReactNode; /** `card` is a framed box among the content; `bar` runs the full width under * a header, ruled off below, for a condition that holds across the surface. */ variant?: 'card' | 'bar' | undefined; /** `sm` sits beside a compact control, such as a composer. */ size?: 'sm' | 'md' | undefined; /** Announces it as it appears, and again when its words change, for a message * that arrives after the surface has loaded, such as a failed save: an error at * once, anything else when the reader pauses. A callout that's there from the * start is read in its place, with the content around it. */ live?: boolean | undefined; className?: string | undefined; testId?: string | undefined; } /** A message set into the page in a status's tone: guidance, a warning, an error * or a success, and what to do about it. For a passing notice that floats over * the page, use `toast`. */ export declare function Callout({ tone, title, children, action, onDismiss, icon, variant, size, live, className, testId, }: CalloutProps): import("react").JSX.Element;