import * as graphql from './graphql' ; import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core' ; const documents = { '\n  query Foo {\n    Tweets {\n      id\n    }\n  }\n' : graphql . FooDocument , '\n  fragment Lel on Tweet {\n    id\n    body\n  }\n' : graphql . LelFragmentDoc , '\n  query Bar {\n    Tweets {\n      ...Lel\n    }\n  }\n' : graphql . BarDocument } ; export function gql ( source ) ; export function gql ( source ) ; export function gql ( source ) ; export function gql ( source ) ; export function gql ( source ) { return ( documents as any ) [ source ] ?? { } ; } export type DocumentType < TDocumentNode extends DocumentNode < any , any > > = TDocumentNode extends DocumentNode < infer TType , any > ? TType : never ;