import type { Hub } from '@sentry/core'; import type { EventProcessor } from '@sentry/types'; import type { LazyLoadedIntegration } from './lazy'; interface ApolloOptions { useNestjs?: boolean; } declare type ApolloResolverGroup = { [key: string]: () => unknown; }; declare type ApolloModelResolvers = { [key: string]: ApolloResolverGroup; }; declare type GraphQLModule = { GraphQLFactory: { prototype: { create: (resolvers: ApolloModelResolvers[]) => unknown; }; }; }; declare type ApolloModule = { ApolloServerBase: { prototype: { constructSchema: (config: unknown) => unknown; }; }; }; /** Tracing integration for Apollo */ export declare class Apollo implements LazyLoadedIntegration { /** * @inheritDoc */ static id: string; /** * @inheritDoc */ name: string; private readonly _useNest; private _module?; /** * @inheritDoc */ constructor(options?: ApolloOptions); /** @inheritdoc */ loadDependency(): (GraphQLModule & ApolloModule) | undefined; /** * @inheritDoc */ setupOnce(_: (callback: EventProcessor) => void, getCurrentHub: () => Hub): void; } export {}; //# sourceMappingURL=apollo.d.ts.map