import { EntityDict } from "../../oak-app-domain"; import { BRC } from "../../types/RuntimeCxt"; import { Channel } from "../../types/Message"; export type NotificationHandler = (notification: EntityDict['notification']['OpSchema'], context: BRC) => Promise; export type NotificationFailureHandler = (message: EntityDict['message']['Schema'], context: BRC) => Promise; export declare function registerNotificationHandler(channel: Channel, handler: NotificationHandler): void; export declare function getNotificationHandler(channel: Channel): NotificationHandler; export declare function registerNotificationFailureHandler(handler: NotificationFailureHandler): void; export declare function getNotificationFailureHandlers(): NotificationFailureHandler[];