import { WindowHapiEventCommandData, WindowHapiEventCommandNames, WindowHapiEventCommandStatus } from "./EventCommand/types"; import { WindowHapiInstance } from "../../_window"; import { WindowHapiLogger } from "../logger/types"; export type WindowHapiEventStrategy = { handleEvent: (event: WindowHapiEventCommand) => Promise; }; export type WindowHapiEventMediatorInstances = { source: WindowHapiInstance; targets: WindowHapiInstance[]; }; export type WindowHapiEventMediatorGetInstancesHandler = () => WindowHapiEventMediatorInstances; export type WindowHapiEventCommand = { id: string; name: WindowHapiEventCommandNames; createdAt: string; updatedAt: string | undefined; status: WindowHapiEventCommandStatus; logger: WindowHapiLogger; instance?: WindowHapiInstance; data: WindowHapiEventCommandData | undefined; sourceInstanceName: string; targetInstancesNames: string[]; toJSON: Record; }; export type WindowHapiEventCommandCallbackHandler = (data: any, event: WindowHapiEventCommand | WindowHapiEventListener, previousData?: any) => void; export type WindowHapiEventAddEventListenerOptions = { isInternal?: boolean; }; export type WindowHapiEventCommandCommitHandler = (...args: any[]) => void | never | Promise; export type WindowHapiEventCommandWithCallback = WindowHapiEventCommand & { callback?: WindowHapiEventCommandCallbackHandler; }; export type WindowHapiEventListener = { id: string; name: WindowHapiEventCommandNames; callback: WindowHapiEventCommandCallbackHandler | WindowHapiEventCommandCommitHandler | undefined; parentListenerId?: string; setCallback: (callback: WindowHapiEventCommandCallbackHandler) => void; options: WindowHapiEventAddEventListenerOptions | undefined; }; //# sourceMappingURL=types.d.ts.map