import { EventHandler, H3Event } from "h3"; import { ApolloServer, BaseContext, ContextFunction } from "@apollo/server"; import { WithRequired } from "@apollo/utils.withrequired"; import { Hooks } from "crossws"; //#region src/utils/apollo.d.ts interface H3ContextFunctionArgument { event: H3Event; } interface H3HandlerOptions { context?: ContextFunction<[H3ContextFunctionArgument], TContext>; websocket?: Partial; serverAlreadyStarted?: boolean; } declare function startServerAndCreateH3Handler(server: ApolloServer | (() => ApolloServer), options?: H3HandlerOptions): EventHandler; declare function startServerAndCreateH3Handler(server: ApolloServer | (() => ApolloServer), options: WithRequired, 'context'>): EventHandler; //#endregion export { H3ContextFunctionArgument, H3HandlerOptions, startServerAndCreateH3Handler };