import { AnyFunctionMap, BaseContext, GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse, ValueOrPromise, WithRequired, GraphQLFieldResolverParams, GraphQLRequestContextDidResolveSource, GraphQLRequestContextParsingDidStart, GraphQLRequestContextValidationDidStart, GraphQLRequestContextDidResolveOperation, GraphQLRequestContextDidEncounterErrors, GraphQLRequestContextResponseForOperation, GraphQLRequestContextExecutionDidStart, GraphQLRequestContextWillSendResponse } from 'apollo-server-types'; export { BaseContext, GraphQLServiceContext, GraphQLRequestContext, GraphQLRequest, GraphQLResponse, ValueOrPromise, WithRequired, GraphQLFieldResolverParams, GraphQLRequestContextDidResolveSource, GraphQLRequestContextParsingDidStart, GraphQLRequestContextValidationDidStart, GraphQLRequestContextDidResolveOperation, GraphQLRequestContextDidEncounterErrors, GraphQLRequestContextResponseForOperation, GraphQLRequestContextExecutionDidStart, GraphQLRequestContextWillSendResponse, }; export interface ApolloServerPlugin { serverWillStart?(service: GraphQLServiceContext): ValueOrPromise; requestDidStart?(requestContext: GraphQLRequestContext): GraphQLRequestListener | void; } export interface GraphQLServerListener { serverWillStop?(): ValueOrPromise; } export declare type GraphQLRequestListenerParsingDidEnd = (err?: Error) => void; export declare type GraphQLRequestListenerValidationDidEnd = ((err?: ReadonlyArray) => void); export declare type GraphQLRequestListenerExecutionDidEnd = ((err?: Error) => void); export declare type GraphQLRequestListenerDidResolveField = ((error: Error | null, result?: any) => void); export interface GraphQLRequestListener extends AnyFunctionMap { didResolveSource?(requestContext: GraphQLRequestContextDidResolveSource): ValueOrPromise; parsingDidStart?(requestContext: GraphQLRequestContextParsingDidStart): GraphQLRequestListenerParsingDidEnd | void; validationDidStart?(requestContext: GraphQLRequestContextValidationDidStart): GraphQLRequestListenerValidationDidEnd | void; didResolveOperation?(requestContext: GraphQLRequestContextDidResolveOperation): ValueOrPromise; didEncounterErrors?(requestContext: GraphQLRequestContextDidEncounterErrors): ValueOrPromise; responseForOperation?(requestContext: GraphQLRequestContextResponseForOperation): ValueOrPromise; executionDidStart?(requestContext: GraphQLRequestContextExecutionDidStart): GraphQLRequestExecutionListener | GraphQLRequestListenerExecutionDidEnd | void; willSendResponse?(requestContext: GraphQLRequestContextWillSendResponse): ValueOrPromise; } export interface GraphQLRequestExecutionListener extends AnyFunctionMap { executionDidEnd?: GraphQLRequestListenerExecutionDidEnd; willResolveField?(fieldResolverParams: GraphQLFieldResolverParams): GraphQLRequestListenerDidResolveField | void; } //# sourceMappingURL=index.d.ts.map