import { Key, RefObject } from 'react';
import { CubeNotificationsApi, CubeNotifyApiPropsWithID } from '../types';
export declare function useNotifications(rootRef: RefObject<HTMLElement | null> | null): {
    readonly api: CubeNotificationsApi;
    readonly notifications: CubeNotifyApiPropsWithID[];
    readonly onDismissNotification: (id: Key) => void;
    readonly addOnDismissListener: (listener: (notification: CubeNotifyApiPropsWithID) => void) => () => void | undefined;
};
