import { EventEmitter } from 'node:events'; import { TNotification, TNotificationInput, TSendOptions } from '../types/notification'; type $TSFixMe = any; export declare const getConnectionToken: () => string; export declare const getSender: () => { appDid: string; wallet: import("@ocap/wallet").WalletObject; }; /** * * @param {Notification} notification * @param {{ * keepForOfflineUser: Boolean * }} options * @returns */ declare const doSendToUser: (receiver: string | string[], notification: TNotificationInput, options?: TSendOptions) => Promise; declare const doSendToRelay: (topic: string, event: string, data: any) => Promise; declare const doSendMail: (receiver: string | string[], notification: TNotification, options?: TSendOptions) => Promise; /** * * @param {Notification} notification * @param {{ * channel: String * event: String * socketId: String * socketDid: String * }} options * @returns */ export declare const broadcast: (notification: TNotificationInput, options?: TSendOptions) => Promise; export declare const _eventBus: EventEmitter<[never]>; export declare const _emitter: EventEmitter<[never]>; export declare const cleanup: () => void; export declare const ensureClient: () => Promise; export declare const on: (event: string, cb?: $TSFixMe) => Promise>; export declare const off: any; export declare const _message: { on: (event: string, cb: $TSFixMe) => Promise>; off: any; }; export { doSendMail as sendToMail, doSendToRelay as sendToRelay, doSendToUser as sendToUser }; declare const _default: { sendToUser: (receiver: string | string[], notification: TNotificationInput, options?: TSendOptions) => Promise; sendToRelay: (topic: string, event: string, data: any) => Promise; sendToMail: (receiver: string | string[], notification: TNotification, options?: TSendOptions) => Promise; broadcast: (notification: TNotificationInput, options?: TSendOptions) => Promise; on: (event: string, cb?: $TSFixMe) => Promise>; off: any; _message: { on: (event: string, cb: $TSFixMe) => Promise>; off: any; }; initClient: () => Promise; }; export default _default;