import * as React from 'react'; import type { AlertContextValue, AlertProps, AlertRootProps } from './types.cjs'; export declare const AlertProvider: React.FC, useAlertContext: (consumerName: string) => AlertContextValue; /** * Alert's live-region primitive: renders the root `
`, wires `titleId`/`descriptionId` to `aria-labelledby`/`aria-describedby`, sets `aria-live` from `role`, and distributes the ids and dismissal callback to `AlertTitle`/`AlertDescription`/`AlertClose` via context. * * `Alert` below composes this with the derived anatomy; reach for `AlertRoot` directly, via `@skdx/react/primitives/alert`, for manual composition of the parts. * * An Alert open on first render is not announced — a live region must exist before its text changes, so an Alert that must be announced has to mount after load. * * Dismissal restores focus to what preceded the alert, or to what held focus before it mounted, never to `document.body`; see {@link focusAfterDismiss}. * * @example * ```tsx * import { AlertDescription, AlertIcon, AlertRoot, AlertTitle } from '@skdx/react/primitives/alert'; * * * ⚠️ * Something went wrong * Please try again. * * ``` */ export declare const AlertRoot: { ({ role, open: openProp, defaultOpen, onOpenChange, closeLabel, dismissOnEscape, status, variant, ref: forwardedRef, ...props }: AlertRootProps): React.ReactNode; displayName: string; }; /** * Inline message region — distinct from Toast, which is a floating, auto-dismissing notification. * * Draws the derived anatomy from `icon`/`title`/`description`/`action`/`dismissible`: icon, title, description, `children` as the body, action row, and close button. For manual composition, use `AlertRoot` from `@skdx/react/primitives/alert`. * * Severity travels on `status` (or the equivalent `data-status`), the same axis `Badge`, `Button`, `Tag` and `Toast` read — pair it with an `icon` or say it in the `title`, never colour alone. * * @example * ```tsx * * ``` */ export declare const Alert: { ({ title, description, icon, action, dismissible, children, ref: forwardedRef, ...rest }: AlertProps): React.ReactNode; displayName: string; };