@event-inc/emit
Version:
Event Inc is a fully managed event bus lets you send and receive data across mission-critical cloud apps, databases and warehouses.
23 lines (22 loc) • 777 B
TypeScript
import { OnOptions, OnHandler, DeRegisterInfo, Event } from "../types";
export declare function createClient(secret?: string, options?: {
environment?: string;
}): {
emit: (event: string, payload?: object) => Promise<Event>;
on: (eventName: string, handler: OnHandler, options?: OnOptions) => Promise<{
eventName: string;
platform: any;
label: any;
txKey: string;
}>;
deregister: (deregisterInfo: DeRegisterInfo) => {
platform: string;
label: string;
eventName: string;
txKey: string;
}[];
deregisterAll: () => void;
verify: (buildableSignature: string, pipelineSecret: string, payload: string, options?: {
tolerance?: number | undefined;
} | undefined) => boolean;
};