import { ApolloServer, ApolloServerOptions, ApolloServerPlugin } from '@apollo/server';
import { Disposable } from 'graphql-ws';
import { Server } from 'http';
import { AppContext } from '../types.js';
/**
 * Creates and configures an Apollo Server instance with built-in plugins
 * for HTTP drain and WebSocket cleanup.
 *
 * @param configOverride - Apollo Server options (typically contains the schema)
 * @param servers - HTTP server and WebSocket cleanup disposable
 * @param additionalPlugins - Optional additional plugins to merge with built-in plugins
 */
declare const buildApolloServer: (configOverride: ApolloServerOptions<AppContext>, { httpServer, serverCleanup }: {
    httpServer: Server;
    serverCleanup: Disposable;
}, additionalPlugins?: ApolloServerPlugin[]) => ApolloServer<AppContext>;
export default buildApolloServer;
//# sourceMappingURL=index.d.ts.map