import { GraphQLParams , ValueOrPromise } from "@benzene/core" ; import { ExecutionResult , FormattedExecutionResult } from "graphql" ; export interface HandlerOptions < TExtra > { param params onParams ? ( params ) : ValueOrPromise < GraphQLParams | ExecutionResult | void > ; } type Headers = Record < string , string | string [ ] | undefined > ; /**
 * The generic HTTP Request object
 */ export interface HTTPRequest { method : string ; query ? : Record < string , string | string [ ] > ; body ? : Record < string , any > | null ; headers : Headers ; } /**
 * The generic HTTP Response object
 */ export interface HTTPResponse { status : number ; headers : Headers ; payload : FormattedExecutionResult | AsyncIterableIterator < FormattedExecutionResult > ; }