UNPKG

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