@pmouli/isy-matter-server
Version:
Service to expose an ISY device as a Matter Border router
51 lines • 1.53 kB
TypeScript
import type * as MatterServer from 'isy-matter/Bridge/Server';
import type { ISY } from 'isy-nodejs/ISY';
import { type Server, type Socket } from 'net';
export declare function processMessage(msg: Message): Promise<void>;
export type ProgramOptions = {
autoStart: boolean;
dependencies: 'static' | 'plugin' | 'remote';
env: string;
requireAuth: boolean;
openSocket: boolean;
reset: boolean;
devices: string[];
filter: string;
subprocess: boolean;
factoryReset: boolean;
};
export declare let authenticated: Boolean;
export declare const matterServiceSockPath = "/tmp/ns2matter";
export declare let socketServer: Server;
export declare let matterServer: typeof MatterServer;
export declare let client: Socket;
export declare let pluginEnv: typeof process.env & {
PLUGIN_PATH: string;
};
export type Message = {
type: 'command';
command: 'start' | 'stop' | 'update' | 'requestPairingCode';
} | ({
type: 'isyConfig';
} & ISY.Config) | ({
type: 'matterConfig';
} & MatterServer.Config) | ({
type: 'clientEnv';
} & {
env: typeof process.env & {
PLUGIN_PATH: string;
};
}) | ({
type: 'serverConfig';
} & {
logLevel?: string;
logPath?: string;
}) | {
type: 'auth';
credential: Credential;
};
export declare function parseConcatenatedJSON(json: string): any;
export declare function startSocketServer(): Promise<Server>;
export declare function stopSocketServer(): Promise<void>;
//# sourceMappingURL=main.d.ts.map