function-call.d.ts 666 B

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