import React from "react"; import { AlertMessageType, AlertOptions } from "./Alert"; type ThrowAlert = (error: E | undefined, options: { errorMessage?: AlertMessageType; successMessage?: AlertMessageType; ignoreSuccess?: boolean; onError?: (error: E) => void; onSuccess?: () => void; }) => void; interface AlertContextValue { addAlert: (message: AlertMessageType, options?: AlertOptions) => string; removeAlert: (id: string) => void; throwAlert: ThrowAlert; } export declare const alertPositions: readonly ["top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right"]; export type AlertPosition = (typeof alertPositions)[number]; export interface AlertProviderProps { position?: AlertPosition; children: React.ReactNode; } export declare const AlertProvider: ({ children, position, }: AlertProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element; export declare const useAlert: () => AlertContextValue; export {};