import type { ApolloServerPlugin } from '@apollo/server'; import { type DocumentNode } from 'graphql'; /** * Schema reading (`__schema`, `__type`) is open to a signed-in user and refused to anyone else * (ADR-0126). `__typename` stays open: client caches ask for it on every query. * * Apollo's `introspection` switch is global, so it stays on and this plugin decides per request. * The development and the production server both use it, so the two follow one rule. * * The request context is the Koa context; a signed-in request carries `state.user`. */ export declare function introspectionForSignedIn(): ApolloServerPlugin; /** Whether a document reads the schema anywhere — in a fragment as much as in the operation. */ export declare function asksForSchema(document: DocumentNode): boolean;