1 |
|
2 | export declare const controllerDir: string;
|
3 |
|
4 | export declare function getConfig(): Record<string, any>;
|
5 |
|
6 |
|
7 |
|
8 | export interface AdapterInstance<HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined> extends ioBroker.Adapter {
|
9 | oObjects: HasObjectsCache extends true ? Exclude<ioBroker.Adapter["oObjects"], undefined> : undefined;
|
10 | oStates: HasStatesCache extends true ? Exclude<ioBroker.Adapter["oStates"], undefined> : undefined;
|
11 | }
|
12 |
|
13 | export type AdapterOptions<HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined> = Omit<ioBroker.AdapterOptions, "objects" | "states"> & (true extends HasObjectsCache ? {
|
14 | objects: true;
|
15 | } : {
|
16 | objects?: HasObjectsCache;
|
17 | }) & (true extends HasStatesCache ? {
|
18 | states: true;
|
19 | } : {
|
20 | states?: HasStatesCache;
|
21 | });
|
22 |
|
23 | interface AdapterConstructor {
|
24 | new <HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined>(adapterOptions: AdapterOptions<HasObjectsCache, HasStatesCache> | string): AdapterInstance<HasObjectsCache, HasStatesCache>;
|
25 | <HasObjectsCache extends boolean | undefined = undefined, HasStatesCache extends boolean | undefined = undefined>(adapterOptions: AdapterOptions<HasObjectsCache, HasStatesCache> | string): AdapterInstance<HasObjectsCache, HasStatesCache>;
|
26 | }
|
27 |
|
28 | export declare const adapter: AdapterConstructor;
|
29 |
|
30 | export declare const Adapter: AdapterConstructor;
|
31 | export {};
|