Do not edit this file. It is a report generated by API Extractor.
/// <reference types="node" />
import { CloudEventV1 as CloudEvent } from 'cloudevents';
import { Request as Request_3 } from 'express';
import { Response as Response_2 } from 'express';
export { CloudEvent }
// @public
export const cloudEvent: <T = unknown>(functionName: string, handler: CloudEventFunction<T>) => void;
// @public
export interface CloudEventFunction<T = unknown> {
// (undocumented)
(cloudEvent: CloudEvent<T>): any;
}
// @public
export interface CloudEventFunctionWithCallback<T = unknown> {
// (undocumented)
(cloudEvent: CloudEvent<T>, callback: Function): any;
}
// @public
export interface CloudFunctionsContext {
eventId?: string;
eventType?: string;
resource?: string | {
[key: string]: string;
};
timestamp?: string;
}
// @public
export type Context = CloudFunctionsContext | CloudEvent<unknown>;
// @public
export interface Data {
// (undocumented)
data: object;
}
// @public
export interface EventFunction {
// (undocumented)
(data: {}, context: Context): any;
}
// @public
export interface EventFunctionWithCallback {
// (undocumented)
(data: {}, context: Context, callback: Function): any;
}
// @public
export type HandlerFunction<T = unknown> = HttpFunction | EventFunction | EventFunctionWithCallback | CloudEventFunction<T> | CloudEventFunctionWithCallback<T>;
// @public
export const http: (functionName: string, handler: HttpFunction) => void;
// @public
export interface HttpFunction {
// (undocumented)
(req: Request_2, res: Response_2): any;
}
// @public
export type LegacyCloudFunctionsContext = CloudFunctionsContext | Data;
// @public
export interface LegacyEvent {
// (undocumented)
context: CloudFunctionsContext;
// (undocumented)
data: {
[key: string]: any;
};
}
// @public (undocumented)
interface Request_2 extends Request_3 {
rawBody?: Buffer;
}
export { Request_2 as Request }
export { Response_2 as Response }
// (No @packageDocumentation comment for this package)