1 | import { IDisposable } from '@lumino/disposable';
|
2 | import { ISignal } from '@lumino/signaling';
|
3 | import { JupyterFrontEnd } from './frontend';
|
4 | import { ILabStatus } from './tokens';
|
5 |
|
6 |
|
7 |
|
8 | export declare class LabStatus implements ILabStatus {
|
9 | |
10 |
|
11 |
|
12 | constructor(app: JupyterFrontEnd<any, any>);
|
13 | /**
|
14 | * Returns a signal for when application changes its busy status.
|
15 | */
|
16 | get busySignal(): ISignal<JupyterFrontEnd, boolean>;
|
17 | /**
|
18 | * Returns a signal for when application changes its dirty status.
|
19 | */
|
20 | get dirtySignal(): ISignal<JupyterFrontEnd, boolean>;
|
21 | /**
|
22 | * Whether the application is busy.
|
23 | */
|
24 | get isBusy(): boolean;
|
25 | /**
|
26 | * Whether the application is dirty.
|
27 | */
|
28 | get isDirty(): boolean;
|
29 | /**
|
30 | * Set the application state to dirty.
|
31 | *
|
32 | * @returns A disposable used to clear the dirty state for the caller.
|
33 | */
|
34 | setDirty(): IDisposable;
|
35 | /**
|
36 | * Set the application state to busy.
|
37 | *
|
38 | * @returns A disposable used to clear the busy state for the caller.
|
39 | */
|
40 | setBusy(): IDisposable;
|
41 | private _busyCount;
|
42 | private _busySignal;
|
43 | private _dirtyCount;
|
44 | private _dirtySignal;
|
45 | }
|