import { type DocumentNode, type FragmentDefinitionNode, type GraphQLSchema } from 'graphql'; import type { ExpandFragmentsOptions } from './expandFragmentsTypes.mts'; export type { ExpandFragmentsOptions, FragmentDefinitionsMode, MissingFragmentBehavior, } from './expandFragmentsTypes.mts'; /** * Expands fragment spreads and inline fragments inside a DocumentNode using schema type information. * * Fragment definitions are removed from the returned document. Selections that are not valid for the * current type are omitted, while narrowing fragments can be preserved as inline fragments by default. */ export default function expandFragments(schema: GraphQLSchema, document: DocumentNode, options?: ExpandFragmentsOptions): DocumentNode; /** * Expands fragment spreads and inline fragments inside a FragmentDefinitionNode using schema type information. */ export declare function expandFragmentsInFragment(schema: GraphQLSchema, fragment: FragmentDefinitionNode, options?: ExpandFragmentsOptions): FragmentDefinitionNode;