import { type ReactNode, type RefObject } from "react"; import { type FooterButtons } from "."; import { type Colors } from "./Alert"; interface GetFooterButtonsArgs { onClose: () => void; } export interface AlertConfig { id?: string; title: string; subtitle: ReactNode; getFooterButtons?: (args: GetFooterButtonsArgs) => FooterButtons; onRetry?: () => void; color?: Colors; } interface AlertContext { showAlert: (config: AlertConfig) => string; removeAlert: (id: string) => void; /** Useful to ignore click events when interacting with the alerts. * * E.g. if you don't want to close a dialog when dismissing an alert. */ containerRef: RefObject | null; } declare const AlertContext: import("react").Context; interface AlertProviderProps { children: ReactNode; } export declare function AlertProvider(props: AlertProviderProps): JSX.Element; export declare function useAlert(): AlertContext; export {};