1 | import { pubsub_v1 } from "googleapis";
|
2 | import { Wrapper } from "../wrapper";
|
3 | import PubSubApi = pubsub_v1;
|
4 | export declare const filename: string;
|
5 | export interface CloudFunctionContext {
|
6 | eventId: string;
|
7 | timestamp: string;
|
8 | eventType: string;
|
9 | resource: object;
|
10 | }
|
11 | declare type PubsubMessage = PubSubApi.Schema$PubsubMessage;
|
12 | export declare function makeTrampoline(wrapper: Wrapper): {
|
13 | trampoline: (data: PubsubMessage, context: CloudFunctionContext) => Promise<void>;
|
14 | };
|
15 | export {};
|