1 | import { ReactNode } from 'react';
|
2 | import { ModuleFn } from '../index';
|
3 | export interface Notification {
|
4 | id: string;
|
5 | link: string;
|
6 | content: {
|
7 | headline: string;
|
8 | subHeadline?: string | ReactNode;
|
9 | };
|
10 | icon?: {
|
11 | name: string;
|
12 | color?: string;
|
13 | };
|
14 | onClear?: () => void;
|
15 | }
|
16 | export interface SubState {
|
17 | notifications: Notification[];
|
18 | }
|
19 | export interface SubAPI {
|
20 | addNotification: (notification: Notification) => void;
|
21 | clearNotification: (id: string) => void;
|
22 | }
|
23 | export declare const init: ModuleFn;
|