import { default as React } from 'react'; import { Theme } from './utils'; export type ToastColor = "info" | "success" | "error" | "warning"; export type ToastAlign = "center" | "left" | "right"; export interface ToastConfig { color?: ToastColor; autoHide?: number; } type Toast = { id: number; text: string; color: ToastColor; autoHide: number; }; declare const ToastNotificationsContext: React.Context<{ notifications: Toast[]; addNotification: (text: string, config?: ToastConfig) => void; removeNotification: (id: number) => void; }>; declare function useToastNotifications(): { notifications: Toast[]; addNotification: (text: string, config?: ToastConfig) => void; removeNotification: (id: number) => void; }; interface ToastNotificationsProviderProps { children: React.ReactNode; } declare function ToastNotificationsProvider({ children, }: ToastNotificationsProviderProps): React.JSX.Element; export declare const StyledNotifications: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged, HTMLUListElement>, "style"> & { style?: React.CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined; }, { theme: Theme; $align?: ToastAlign; $bottom?: boolean; }>> & string; export declare const StyledNotificationItem: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Merged, HTMLLIElement>, "style"> & { style?: React.CSSProperties | import('styled-components/dist/types').CSSPropertiesWithVars | undefined; }, { theme: Theme; $color: ToastColor; $visible: boolean; $static: boolean; $align?: ToastAlign; $bottom?: boolean; }>> & string; export interface ToastNotificationsProps { $align?: ToastAlign; $bottom?: boolean; } declare function ToastNotifications({ $align, $bottom, }: ToastNotificationsProps): React.JSX.Element; export { ToastNotifications, ToastNotificationsContext, ToastNotificationsProvider, useToastNotifications, };