export type LifecycleEventPayload = Record; export interface LifecycleEvent { error?: unknown; [x: string]: unknown; } export interface CancellableLifecycleEvent { error?: unknown; preventDefault(): void; isCancelled(): boolean; [x: string]: unknown; } export type PluginEventHandler = (event: LifecycleEvent | CancellableLifecycleEvent) => void; export interface DashboardPlugin { onInitialize?: PluginEventHandler; onEventTrigger?: PluginEventHandler; onLinkToUrl?: PluginEventHandler; [x: string]: PluginEventHandler | undefined; } type WrappedCallback = (callbackName: string, payload: LifecycleEventPayload) => void; type WrappedCancellableCallback = (callbackName: string, payload: LifecycleEventPayload) => boolean; export interface DashboardPluginWrapper { invokePluginCallback: WrappedCallback; invokeCancellablePluginCallback: WrappedCancellableCallback; } export {}; //# sourceMappingURL=DashboardPlugin.d.ts.map