1 | import { PubSubMessage } from "./function";
|
2 | import { CommandHandler, EventHandler } from "./handler";
|
3 | /**
|
4 | * Register a command handler with a certain name
|
5 | */
|
6 | export declare function registerCommand(name: string, loader: () => Promise<CommandHandler>): void;
|
7 | /**
|
8 | * Register a event handler with a certain name
|
9 | */
|
10 | export declare function registerEvent(name: string, loader: () => Promise<EventHandler>): void;
|
11 | export declare const bundle: (pubSubEvent: PubSubMessage, context: {
|
12 | eventId: string;
|
13 | }) => Promise<void>;
|
14 | //# sourceMappingURL=bundle.d.ts.map |
\ | No newline at end of file |