import * as i0 from '@angular/core'; import { InputSignal, InputSignalWithTransform, OutputEmitterRef, Signal, WritableSignal } from '@angular/core'; import { VariantProps } from 'class-variance-authority'; type AlertVariant = 'info' | 'success' | 'warning' | 'destructive'; /** * CVA variants for the alert container. * * @tokens `--color-primary-subtle`, `--color-primary-subtle-foreground`, `--color-primary-border-subtle`, * `--color-success-subtle`, `--color-success-subtle-foreground`, `--color-success-border-subtle`, * `--color-warn-subtle`, `--color-warn-subtle-foreground`, `--color-warn-border-subtle`, * `--color-warn`, `--color-warn-foreground`, * `--radius-card` */ declare const alertVariants: (props?: { variant?: AlertVariant; }) => string; /** * CVA variants for the alert close button. * * @tokens `--color-ring`, `--radius-card`, * `--color-primary-subtle-foreground-muted`, `--color-primary-subtle-hover`, * `--color-success-subtle-foreground-muted`, `--color-success-subtle-hover`, * `--color-warn-subtle-foreground-muted`, `--color-warn-subtle-hover`, * `--color-warn-foreground-muted`, `--color-warn-foreground-wash` */ declare const alertCloseButtonVariants: (props?: { variant?: AlertVariant; }) => string; type AlertVariants = VariantProps; /** * Custom icon slot for `com-alert`. * * When present, the alert suppresses the default auto-mapped icon * and renders this projected content instead. * * @tokens none * * @example * ```html * * * ``` */ declare class ComAlertIcon { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Inline alert component for displaying contextual messages. * * Unlike toasts (ephemeral overlays), alerts are embedded in the page flow * and persist until dismissed or the condition changes. * * @tokens `--color-primary-subtle`, `--color-primary-subtle-foreground`, * `--color-success-subtle`, `--color-success-subtle-foreground`, * `--color-warn-subtle`, `--color-warn-subtle-foreground`, * `--color-warn`, `--color-warn-foreground`, * `--radius-card`, `--color-ring` * * @example Info alert with title and description * ```html * *

Heads up

*

You can add components using the CLI.

*
* ``` * * @example Dismissible warning * ```html * *

Storage almost full

*

You have used 90% of your storage quota.

*
* ``` */ declare class ComAlertComponent { /** Semantic color variant. */ readonly variant: InputSignal; /** Shows a dismiss button when true. */ readonly dismissible: InputSignalWithTransform; /** Consumer CSS classes — merged with variant classes. */ readonly userClass: InputSignal; /** Emitted when the dismiss button is clicked. */ readonly dismissed: OutputEmitterRef; /** @internal Detects whether a custom icon directive is projected. */ protected readonly customIcon: Signal; /** @internal Controls visibility for dismiss animation. */ protected readonly visible: WritableSignal; /** @internal Tracks exit animation state. */ protected readonly animatingOut: WritableSignal; /** Default icon name auto-mapped from variant. */ protected readonly defaultIconName: Signal; /** ARIA role based on variant. */ protected readonly ariaRole: Signal; /** ARIA live region politeness. */ protected readonly ariaLive: Signal; /** Computed alert container classes. */ protected readonly alertClasses: Signal; /** Computed close button classes. */ protected readonly closeButtonClasses: Signal; /** @internal Triggers dismiss animation, then removes from DOM. */ protected dismiss(): void; /** @internal Removes element after exit animation completes. */ protected onAnimationEnd(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Title slot for `com-alert`. * * Apply to any heading element. Consumer picks the semantic level (h3, h4, etc.). * * @example * ```html * *

Heads up

*
* ``` * * @tokens `--color-foreground` */ declare class ComAlertTitle { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Description slot for `com-alert`. * * Inherits text color from the parent alert variant. * * @tokens none * * @example * ```html * *

Your session will expire in 5 minutes.

*
* ``` */ declare class ComAlertDescription { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Actions slot for `com-alert`. * * Container for action buttons. Place buttons inside. * * @tokens none * * @example * ```html * *

Account suspended

*

Contact support to restore access.

*
* *
*
* ``` */ declare class ComAlertActions { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export { ComAlertActions, ComAlertComponent, ComAlertDescription, ComAlertIcon, ComAlertTitle, alertCloseButtonVariants, alertVariants }; export type { AlertVariant, AlertVariants };