1 | import { Emitter, Event } from '../common/event';
|
2 | import { Deferred } from '../common/promise-util';
|
3 | import { ILogger } from '../common/logger';
|
4 | import { FrontendApplicationState } from '../common/frontend-application-state';
|
5 | export { FrontendApplicationState };
|
6 | export declare class FrontendApplicationStateService {
|
7 | protected readonly logger: ILogger;
|
8 | private _state;
|
9 | protected deferred: {
|
10 | [state: string]: Deferred<void>;
|
11 | };
|
12 | protected readonly stateChanged: Emitter<FrontendApplicationState>;
|
13 | get state(): FrontendApplicationState;
|
14 | set state(state: FrontendApplicationState);
|
15 | get onStateChanged(): Event<FrontendApplicationState>;
|
16 | protected doSetState(state: FrontendApplicationState): void;
|
17 | reachedState(state: FrontendApplicationState): Promise<void>;
|
18 | reachedAnyState(...states: FrontendApplicationState[]): Promise<void>;
|
19 | }
|
20 |
|
\ | No newline at end of file |