1 | import type { ApolloServerPlugin } from 'apollo-server-plugin-base';
|
2 | import type { HiveClient, HivePluginOptions, SupergraphSDLFetcherOptions } from './internal/types';
|
3 | export declare function createSupergraphSDLFetcher({ endpoint, key }: SupergraphSDLFetcherOptions): () => Promise<{
|
4 | id: string;
|
5 | supergraphSdl: any;
|
6 | }>;
|
7 | export declare function createSupergraphManager(options: {
|
8 | pollIntervalInMs?: number;
|
9 | } & SupergraphSDLFetcherOptions): {
|
10 | initialize(hooks: {
|
11 | update(supergraphSdl: string): void;
|
12 | }): Promise<{
|
13 | supergraphSdl: string;
|
14 | cleanup?: () => Promise<void>;
|
15 | }>;
|
16 | };
|
17 | export declare function hiveApollo(clientOrOptions: HiveClient | HivePluginOptions): ApolloServerPlugin;
|