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