diff --git a/v1/index.d.ts b/v1/index.d.ts index a206c64..f6efe36 100644 --- a/v1/index.d.ts +++ b/v1/index.d.ts @@ -56,6 +56,14 @@ export class BinaryHTTPEmitter { public emit(event: Cloudevent): Promise; } +/** + * HTTP receiver for Structured mode + */ +export class StructuredHTTPReceiver { + public check(payload: any, headers: Map): void; + public parse(payload: any, headers: Map): Cloudevent; +} + /** * Function to create CloudEvents instances */