/**************************************************************************************************
* hoobs-sdk *
* Copyright (C) 2020 HOOBS *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 3 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see . *
**************************************************************************************************/
export interface BridgeRecord {
id: string;
type: string;
display: string;
port: number;
pin?: string;
username?: string;
ports?: {
[key: string]: number;
};
autostart?: number;
host?: string;
service?: string;
advertiser?: string;
protocol?: string;
project?: string;
debugging?: boolean;
status?: () => Promise<{
[key: string]: any;
}>;
config?: {
get: () => Promise<{
[key: string]: any;
}>;
update: (config: {
[key: string]: any;
}) => Promise<{
[key: string]: any;
}>;
};
plugins?: () => Promise<{
[key: string]: any;
}[]> | string;
plugin?: {
[key: string]: any;
};
rename?: () => Promise;
accessories?: () => Promise<{
[key: string]: any;
}[]>;
start?: () => Promise;
stop?: () => Promise;
restart?: () => Promise;
purge?: () => Promise;
cache?: () => Promise<{
[key: string]: any;
}>;
remove?: () => Promise;
}
export declare const Bridges: {
count(): Promise;
list(): Promise;
add(name: string, port: number, pin?: string | undefined, username?: string | undefined, advertiser?: string | undefined, plugin?: string | undefined, protocol?: string | undefined): Promise;
import(file: Blob, name: string, port: number, pin?: string | undefined, username?: string | undefined, advertiser?: string | undefined, protocol?: string | undefined): Promise>;
};
//# sourceMappingURL=bridges.d.ts.map