UNPKG

1.86 kBTypeScriptView Raw
1/// <reference types="iobroker" />
2export * from "./utils";
3/**
4 * Returns the absolute path of the data directory for the current host. On linux, this is usually `/opt/iobroker/iobroker-data`.
5 */
6export declare function getAbsoluteDefaultDataDir(): string;
7/**
8 * Returns the absolute path of the data directory for the current adapter instance.
9 * On linux, this is usually `/opt/iobroker/iobroker-data/<adapterName>.<instanceNr>`
10 */
11export declare function getAbsoluteInstanceDataDir(adapterObject: ioBroker.Adapter): string;
12export declare const EXIT_CODES: Readonly<{
13 NO_ERROR: number;
14 JS_CONTROLLER_STOPPED: number;
15 INVALID_ADAPTER_CONFIG: number;
16 NO_ADAPTER_CONFIG_FOUND: number;
17 INVALID_CONFIG_OBJECT: number;
18 INVALID_ADAPTER_ID: number;
19 UNCAUGHT_EXCEPTION: number;
20 ADAPTER_ALREADY_RUNNING: number;
21 INSTANCE_IS_DISABLED: number;
22 CANNOT_GZIP_DIRECTORY: number;
23 CANNOT_FIND_ADAPTER_DIR: number;
24 ADAPTER_REQUESTED_TERMINATION: number;
25 UNKNOWN_PACKET_NAME: number;
26 ADAPTER_REQUESTED_REBUILD: number;
27 CANNOT_READ_INSTANCES: number;
28 NO_MULTIPLE_INSTANCES_ALLOWED: number;
29 NO_MULTIPLE_INSTANCES_ALLOWED_ON_HOST: number;
30 NO_CONNECTION_TO_OBJ_DB: number;
31 NO_CONNECTION_TO_STATES_DB: number;
32 INSTANCE_ALREADY_EXISTS: number;
33 CANNOT_INSTALL_NPM_PACKET: number;
34 CANNOT_EXTRACT_FROM_ZIP: number;
35 INVALID_IO_PACKAGE_JSON: number;
36 CANNOT_COPY_DIR: number;
37 MISSING_ADAPTER_FILES: number;
38 INVALID_NPM_VERSION: number;
39 INVALID_NODE_VERSION: number;
40 INVALID_OS: number;
41 INVALID_DEPENDENCY_VERSION: number;
42 INVALID_ARGUMENTS: number;
43 INVALID_PASSWORD: number;
44 MISSING_CONFIG_JSON: number;
45 CANNOT_DELETE_NON_DELETABLE: number;
46 CANNOT_GET_STATES: number;
47 CANNOT_GET_REPO_LIST: number;
48 START_IMMEDIATELY_AFTER_STOP: number;
49}>;