import { DocumentNode } from "graphql"; import { TypeGetter } from "./typeGetter"; export interface FragmentMap { [name: string]: DocumentNode; } /** * Options used in transformDocment */ export interface TransformDocumentOptions { variables?: { [name: string]: any; }; typeGetter?: TypeGetter; fragmentMap?: FragmentMap; } /** * transformDocument will resolve NamedFragments and turn them into shallow InlineFragments or if possible * merge them directly with Field nodes. If `options.variables` are given it also resolves @include * and @skip directives. */ export declare function transformDocument(document: DocumentNode, options?: TransformDocumentOptions): DocumentNode;