import { createInMemoryCache, UseResponseCacheParameter as UseEnvelopResponseCacheParameter } from '@envelop/response-cache';
import { Maybe, Plugin, PromiseOrValue } from 'graphql-yoga';
export type UseResponseCacheParameter = Omit<UseEnvelopResponseCacheParameter, 'getDocumentString' | 'session'> & {
    session: (request: Request) => PromiseOrValue<Maybe<string>>;
    enabled?: (request: Request) => boolean;
};
export declare function useResponseCache(options: UseResponseCacheParameter): Plugin;
export { createInMemoryCache };
