import { PageProps } from 'gatsby'; import * as React from 'react'; import { IJaenPageProps } from '../../../../internal-plugins/pages/types'; import { IJaenState } from '../../redux/types'; import { INotification } from '../../types'; type QueryData = { jaenNotifications: { nodes: Array<{ name: string; relativePath: string; }>; }; allJaenNotification: { nodes: Array; }; }; export declare const loadNotificationsComponent: (jaenNotifications: QueryData['jaenNotifications'], allJaenNotification: QueryData['allJaenNotification']) => { id: string; isActive: boolean; notification?: INotification | undefined; Component: import("../../../../types").IJaenConnection<{ id: string; notification?: INotification | undefined; forceOpen?: boolean | undefined; onClose?: (() => void) | undefined; }, import("./context").NotificationOptions>; }[]; export declare const useNotifications: () => { id: string; isActive: boolean; notification?: INotification | undefined; Component: import("../../../../types").IJaenConnection<{ id: string; notification?: INotification | undefined; forceOpen?: boolean | undefined; onClose?: (() => void) | undefined; }, import("./context").NotificationOptions>; }[]; export declare const loadNotificationsForPage: (jaenNotifications: QueryData['jaenNotifications'], allJaenNotification: QueryData['allJaenNotification'], dynamicNotifications: IJaenState['notifications']['nodes'], pageProps: IJaenPageProps, stateAdvanced: IJaenState['notifications']['advanced']) => JSX.Element[]; /** * Loads the notifications for a given page. * Only notifications that match the page's conditions are returned. * * Known limitation: * - The `templates` condition is only checked in buildtime. That means that * if you add a new page, the notification will not be shown until the page * is published. */ export declare const NotificationsLoader: React.FC<{ pageProps: PageProps; }>; export {};