2024-05-23 23:54:42 +00:00
|
|
|
import type { WebContents } from 'electron';
|
2024-05-24 19:23:58 +00:00
|
|
|
/** @module lib/alert */
|
|
|
|
/**
|
|
|
|
* Class for pushing an alert to the UI from the backend.
|
|
|
|
*/
|
2024-05-23 22:49:18 +00:00
|
|
|
export declare class Alert {
|
|
|
|
private ipc;
|
|
|
|
private log;
|
|
|
|
private id;
|
|
|
|
private cb;
|
|
|
|
private ui;
|
2024-05-23 23:54:42 +00:00
|
|
|
constructor(ui: WebContents);
|
2024-05-23 22:49:18 +00:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private init;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private listen;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
private listener;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
**/
|
|
|
|
start(cmd: string): Promise<number>;
|
|
|
|
}
|