spruthub-cli
Version:
CLI tool for managing Spruthub smart home devices
23 lines • 1.04 kB
TypeScript
import type { ConnectionStatus, ApiResponse } from '../types/index.js';
declare class SprutHubClientWrapper {
private client;
private isConnected;
getClient(profileName?: string): Promise<any>;
execute(method: string, params?: any, profileName?: string): Promise<ApiResponse>;
callMethod(methodName: string, params?: any, profileName?: string): Promise<ApiResponse>;
testConnection(profileName?: string): Promise<ConnectionStatus>;
disconnect(): Promise<void>;
getSchema(): any;
getAvailableMethods(): string[];
getMethodSchema(methodName: string): any;
getCategories(): string[];
getMethodsByCategory(category: string): Record<string, any>;
getRestMethods(): any[];
subscribeLogs(callback: (logEntry: any) => void): Promise<any>;
unsubscribeLogs(subscriptionId: string): Promise<any>;
unsubscribeAllLogs(): Promise<any>;
getActiveLogSubscriptions(): any[];
}
declare const _default: SprutHubClientWrapper;
export default _default;
//# sourceMappingURL=client.d.ts.map