UNPKG

666 BTypeScriptView Raw
1import { type ComponentInstance } from '../utils';
2import type { NotifyMessage, NotifyOptions } from './types';
3/**
4 * Close the currently displayed Notify
5 */
6export declare const closeNotify: () => void;
7/**
8 * Display Notify at the top of the page
9 */
10export declare function showNotify(options: NotifyMessage | NotifyOptions): ComponentInstance | undefined;
11/**
12 * Modify the default configuration, affecting all `showNotify` calls
13 */
14export declare const setNotifyDefaultOptions: (options: NotifyOptions) => NotifyOptions;
15/**
16 * Reset the default configuration, affecting all `showNotify` calls
17 */
18export declare const resetNotifyDefaultOptions: () => void;