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