2023-06-11 15:10:34 +10:00
|
|
|
import { OnLoad } from "../di/OnLoad";
|
|
|
|
import { OnUpdate } from "../di/OnUpdate";
|
|
|
|
import { ILogger } from "../models/spt/utils/ILogger";
|
|
|
|
import { LocalisationService } from "../services/LocalisationService";
|
2023-10-09 20:21:00 +11:00
|
|
|
import { EncodingUtil } from "./EncodingUtil";
|
2023-06-11 15:10:34 +10:00
|
|
|
import { TimeUtil } from "./TimeUtil";
|
|
|
|
export declare class App {
|
|
|
|
protected logger: ILogger;
|
|
|
|
protected timeUtil: TimeUtil;
|
|
|
|
protected localisationService: LocalisationService;
|
2023-10-09 20:21:00 +11:00
|
|
|
protected encodingUtil: EncodingUtil;
|
2023-06-11 15:10:34 +10:00
|
|
|
protected onLoadComponents: OnLoad[];
|
|
|
|
protected onUpdateComponents: OnUpdate[];
|
|
|
|
protected onUpdateLastRun: {};
|
2023-10-09 20:21:00 +11:00
|
|
|
protected os: any;
|
|
|
|
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, encodingUtil: EncodingUtil, onLoadComponents: OnLoad[], onUpdateComponents: OnUpdate[]);
|
2023-06-11 15:10:34 +10:00
|
|
|
load(): Promise<void>;
|
|
|
|
protected update(onUpdateComponents: OnUpdate[]): Promise<void>;
|
|
|
|
protected logUpdateException(err: any, updateable: OnUpdate): void;
|
|
|
|
}
|