import type { ApplicationOptions, ClassType, Token, ApplicationContext } from '@nl-framework/core'; import { Logger } from '@nl-framework/logger'; /** * Detect whether the requested operation is a subscription. Apollo Federation * does not federate subscriptions through the gateway, so these are rejected * with a clear error rather than silently failing. */ export declare const isSubscriptionOperation: (rawBody: unknown) => boolean; export interface FederationSubgraphDefinition { name: string; url: string; } export interface FederationGatewayServerOptions { host?: string; port?: number; path?: string; subgraphs?: FederationSubgraphDefinition[]; } export interface FederationGatewayApplicationOptions extends ApplicationOptions, FederationGatewayServerOptions { } export interface FederationGatewayListenResult { url: string; } export interface FederationGatewayListenOptions { host?: string; port?: number; path?: string; subgraphs?: FederationSubgraphDefinition[]; } export interface FederationGatewayHttpRequestInit { method: string; headers: Headers; search: string; body?: unknown; } export declare class FederationGatewayApplication { private readonly context; private readonly options; private readonly ownsContext; private logger; private apolloServer?; private gateway?; private server?; private started; private subgraphs; private httpIntegrated; private mountPath; constructor(context: ApplicationContext, options: FederationGatewayServerOptions, ownsContext: boolean); setHttpIntegration(path?: string): void; isHttpIntegrated(): boolean; getHttpIntegrationPath(): string; listen(options?: number | FederationGatewayListenOptions): Promise; start(subgraphsOverride?: FederationSubgraphDefinition[]): Promise; execute(request: FederationGatewayHttpRequestInit): Promise; close(): Promise; get(token: Token): Promise; getConfig>(): import("@nl-framework/core").ConfigService; getLogger(): Logger; getHttpIntegrationUrl(server: ReturnType): string; private extractBody; private normalizePath; private hasDifferentSubgraphs; } export declare const createFederationGatewayApplication: (rootModule: ClassType, options: FederationGatewayApplicationOptions) => Promise; export declare const createFederationGatewayApplicationFromContext: (context: ApplicationContext, options?: FederationGatewayServerOptions) => FederationGatewayApplication; //# sourceMappingURL=gateway-application.d.ts.map