import { TEvent } from '../types/event'; export declare const subscribe: (cb: (event: TEvent) => any | Promise) => Promise; export declare const unsubscribe: (cb: (event: TEvent) => any | Promise) => void; export declare const publish: (name: string, event: { id?: string; time?: string; data: any; }) => Promise; declare const _default: { subscribe: (cb: (event: TEvent) => any | Promise) => Promise; unsubscribe: (cb: (event: TEvent) => any | Promise) => void; publish: (name: string, event: { id?: string; time?: string; data: any; }) => Promise; }; export default _default;