1 | import { ValueChangedEvent } from './value-changed-event';
|
2 |
|
3 |
|
4 |
|
5 |
|
6 | export declare function register(adapterId: any, adapterEventTargetCallback: (eventTarget: WireEventTarget) => void): void;
|
7 |
|
8 |
|
9 |
|
10 |
|
11 | export declare function registerWireService(): void;
|
12 | declare type NoArgumentListener = () => void;
|
13 | declare type ConfigListenerArgument = Record<string, any>;
|
14 | declare type ConfigListener = (config: ConfigListenerArgument) => void;
|
15 | declare type WireEventTargetListener = NoArgumentListener | ConfigListener;
|
16 | export interface WireEventTarget {
|
17 | addEventListener: (type: string, listener: WireEventTargetListener) => void;
|
18 | removeEventListener: (type: string, listener: WireEventTargetListener) => void;
|
19 | dispatchEvent: (evt: ValueChangedEvent) => boolean;
|
20 | }
|
21 | export { ValueChangedEvent };
|