UNPKG

1.56 kBTypeScriptView Raw
1export interface HomebridgeOptions {
2 keepOrphanedCachedAccessories?: boolean;
3 hideQRCode?: boolean;
4 insecureAccess?: boolean;
5 customPluginPath?: string;
6 noLogTimestamps?: boolean;
7 debugModeEnabled?: boolean;
8 forceColourLogging?: boolean;
9 customStoragePath?: string;
10 strictPluginResolution?: boolean;
11}
12export declare const enum ServerStatus {
13 /**
14 * When the server is starting up
15 */
16 PENDING = "pending",
17 /**
18 * When the server is online and has published the main bridge
19 */
20 OK = "ok",
21 /**
22 * When the server is shutting down
23 */
24 DOWN = "down"
25}
26export declare class Server {
27 private options;
28 private readonly api;
29 private readonly pluginManager;
30 private readonly bridgeService;
31 private readonly ipcService;
32 private readonly externalPortService;
33 private readonly config;
34 private readonly childBridges;
35 private serverStatus;
36 constructor(options?: HomebridgeOptions);
37 /**
38 * Set the current server status and update parent via IPC
39 * @param status
40 */
41 private setServerStatus;
42 start(): Promise<void>;
43 teardown(): void;
44 private publishBridge;
45 private static loadConfig;
46 private loadAccessories;
47 private loadPlatforms;
48 /**
49 * Validate an external bridge config
50 */
51 private validateChildBridgeConfig;
52 /**
53 * Takes care of the IPC Events sent to Homebridge
54 */
55 private initializeIpcEventHandlers;
56 private printSetupInfo;
57}
58//# sourceMappingURL=server.d.ts.map
\No newline at end of file