@samepage/internal
Version:
Utilities used across modules - not meant for use by users directly
15 lines (14 loc) • 579 B
TypeScript
import type { Operation } from "./messages";
import { JSONData } from "./types";
type NotificationActions = Record<string, (args: JSONData, messageUuid: string) => Promise<unknown>>;
export declare const registerNotificationActions: ({ operation, actions, }: {
operation: Operation;
actions: NotificationActions;
}) => NotificationActions;
export declare const callNotificationAction: ({ operation, label, data, messageUuid, }: {
operation: Operation;
label: string;
data: JSONData;
messageUuid: string;
}) => Promise<Record<string, unknown>>;
export {};