1 | import "source-map-support/register";
|
2 | import { CommandHandler, EventHandler } from "./handler";
|
3 | import { CommandIncoming, EventIncoming } from "./payload";
|
4 | export interface PubSubMessage {
|
5 | data: string;
|
6 | attributes: any;
|
7 | }
|
8 | export declare const entryPoint: (pubSubEvent: PubSubMessage, context: {
|
9 | eventId: string;
|
10 | }) => Promise<void>;
|
11 | export declare function processEvent(event: EventIncoming, ctx: {
|
12 | eventId: string;
|
13 | }, loader?: (name: string) => Promise<EventHandler>): Promise<void>;
|
14 | export declare function processCommand(event: CommandIncoming, ctx: {
|
15 | eventId: string;
|
16 | }, loader?: (name: string) => Promise<CommandHandler>): Promise<void>;
|
17 |
|
\ | No newline at end of file |