import type { DocumentNode, validate } from 'graphql'; import type { Plugin } from './types.cjs'; interface Cache { get(key: string): T | undefined; set(key: string, value: T): void; } export interface ParserAndValidationCacheOptions { documentCache?: Cache; errorCache?: Cache; validationCache?: boolean | Cache; } export declare function useParserAndValidationCache({ documentCache, errorCache, validationCache }: ParserAndValidationCacheOptions): Plugin<{}>; export {};