import { Elysia } from 'elysia'; import { ApolloServer, BaseContext, type ApolloServerOptions } from '@apollo/server'; import { type StartStandaloneServerOptions } from '@apollo/server/standalone'; export interface ServerRegistration extends Omit, 'context'> { path?: Path; enablePlayground: boolean; context?: (context: TContext) => Promise; } export type ElysiaApolloConfig = ApolloServerOptions & Omit, 'enablePlayground'> & Partial>; export declare class ElysiaApolloServer extends ApolloServer { createHandler({ path, enablePlayground, context: apolloContext }: ServerRegistration): Promise, { post: { body: { operationName?: string | null | undefined; variables?: {} | undefined; query: string; }; params: import("elysia/dist/types").IsNever>> extends true ? import("elysia").ResolvePath : import("elysia").ResolvePath>; query: unknown; headers: unknown; response: { 200: "" | import("undici-types").Response; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }; }; }>, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }>>; } export declare const apollo: ({ path, enablePlayground, context, ...config }: ElysiaApolloConfig) => Promise, { post: { body: { operationName?: string | null | undefined; variables?: {} | undefined; query: string; }; params: import("elysia/dist/types").IsNever>> extends true ? import("elysia").ResolvePath : import("elysia").ResolvePath>; query: unknown; headers: unknown; response: { 200: "" | import("undici-types").Response; 422: { type: "validation"; on: string; summary?: string; message?: string; found?: unknown; property?: string; expected?: string; }; }; }; }>, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }, { derive: {}; resolve: {}; schema: {}; standaloneSchema: {}; response: {}; }>>; export { gql } from 'graphql-tag'; export default apollo;