UNPKG

@iobroker/adapter-react-v5

Version:

React components to develop ioBroker interfaces with react.

15 lines (14 loc) 786 B
import type { Connection } from '../index'; export type IobUri = string; export type IobUriType = 'object' | 'state' | 'file' | 'http' | 'base64'; export type IobUriParsed = { type: IobUriType; address: string; path?: string; }; export declare function iobUriToString(uri: IobUriParsed): IobUri; /** Parse ioBroker URI */ export declare function iobUriParse(uri: string): IobUriParsed; export declare function getAttrInObject(obj: Record<string, any> | null | undefined, path: string[] | undefined, _position?: number): any; export declare function setAttrInObject(obj: Record<string, any> | null | undefined, path: string[] | undefined, value: any, _position?: number): any; export declare function iobUriRead(uri: IobUri | IobUriParsed, socket: Connection): Promise<any>;