import { Request, Response } from 'express'; import { MiddlewareOptions } from 'graphql-playground-html'; export interface KubelessEventInterface { 'event-type': string; 'event-id': string; 'event-time': string; 'event-namespace': string; data: any; extensions: { request: Request; response: Response; }; } /** * While Kubeless supports returning a result * that it will use to send the request, we * handle actually writing what we need to * for graphql clients directly here, thus * the return type of void. */ export declare type KubelessPlaygroundMiddleware = (event: KubelessEventInterface, context: any) => void; export declare type Register = (options: MiddlewareOptions) => KubelessPlaygroundMiddleware; declare const kubeless: Register; export default kubeless;