UNPKG

579 BTypeScriptView Raw
1import { ReactNode } from 'react';
2import { ModuleFn } from '../index';
3export 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}
16export interface SubState {
17 notifications: Notification[];
18}
19export interface SubAPI {
20 addNotification: (notification: Notification) => void;
21 clearNotification: (id: string) => void;
22}
23export declare const init: ModuleFn;