@graphql-hive/core
Version:
17 lines • 637 B
text/typescript
import type { PromiseOrValue } from 'graphql/jsutils/PromiseOrValue.cjs';
import type { PersistedDocumentsConfiguration } from './types';
import type { HiveLogger } from './utils.cjs';
type HeadersObject = {
get(name: string): string | null;
};
export declare function createPersistedDocuments(config: PersistedDocumentsConfiguration & {
logger: HiveLogger;
fetch?: typeof fetch;
}): null | {
resolve(documentId: string): PromiseOrValue<string | null>;
allowArbitraryDocuments(context: {
headers?: HeadersObject;
}): PromiseOrValue<boolean>;
};
export {};
//# sourceMappingURL=persisted-documents.d.ts.map