UNPKG

@graphql-hive/core

Version:
15 lines 567 B
import type { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue.js'; import type { Logger, PersistedDocumentsConfiguration } from './types'; type HeadersObject = { get(name: string): string | null; }; export declare function createPersistedDocuments(config: PersistedDocumentsConfiguration & { logger: Logger; }): null | { resolve(documentId: string): PromiseOrValue<string | null>; allowArbitraryDocuments(context: { headers?: HeadersObject; }): PromiseOrValue<boolean>; }; export {}; //# sourceMappingURL=persisted-documents.d.ts.map