import type { LiveEvent, LiveEventType } from "@rudderhq/shared";
import { EventEmitter } from "node:events";
type LiveEventPayload = Record<string, unknown>;
type LiveEventListener = (event: LiveEvent) => void;
export declare function publishLiveEvent(input: {
    orgId: string;
    type: LiveEventType;
    payload?: LiveEventPayload;
}): LiveEvent;
export declare function publishGlobalLiveEvent(input: {
    type: LiveEventType;
    payload?: LiveEventPayload;
}): LiveEvent;
export declare function subscribeCompanyLiveEvents(orgId: string, listener: LiveEventListener): () => EventEmitter<[never]>;
export declare function subscribeGlobalLiveEvents(listener: LiveEventListener): () => EventEmitter<[never]>;
export {};
//# sourceMappingURL=live-events.d.ts.map