import { VariantProps } from 'class-variance-authority';
import * as React from 'react';
declare const alertVariants: (props?: ({
    variant?: "error" | "warning" | "info" | "success" | null | undefined;
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
/**
 * Variants emitted by the alert today. The `AlertProps['variant']` shape
 * is widened below to also accept the legacy `'destructive' | 'default'`
 * names from the v0.2.0 cva map; those values are auto-mapped at runtime
 * to `'error'` / `'info'` and trigger a one-time dev-mode console.warn.
 */
type AlertVariant = 'info' | 'success' | 'warning' | 'error';
/** Legacy v0.2.0 variants kept as accepted aliases. */
type LegacyAlertVariant = 'default' | 'destructive';
/** @internal — exported for tests only. Resets the dev-mode warn cache. */
export declare function _resetAlertLegacyWarnings(): void;
export type AlertProps = Omit<React.ComponentProps<'div'>, 'children'> & Omit<VariantProps<typeof alertVariants>, 'variant'> & {
    /**
     * Style variant. Accepts the current `'info' | 'success' | 'warning'
     * | 'error'` set plus the legacy `'destructive' | 'default'` aliases
     * from v0.2.0 (auto-mapped to 'error' / 'info' with a dev warning).
     */
    variant?: AlertVariant | LegacyAlertVariant;
    icon?: React.ReactNode;
    dismissible?: boolean;
    onDismiss?: () => void;
    children?: React.ReactNode;
};
declare function Alert({ className, variant, icon, dismissible, onDismiss, children, ...props }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
declare function AlertTitle({ className, ...props }: React.ComponentProps<'h5'>): import("react/jsx-runtime").JSX.Element;
declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
export { Alert, AlertTitle, AlertDescription, alertVariants, type AlertVariant };
//# sourceMappingURL=alert.d.ts.map