UNPKG

352 BTypeScriptView Raw
1import { DocumentNode, OperationDefinitionNode } from 'graphql';
2import { ExecutionRequest } from './Interfaces.js';
3export declare function getOperationASTFromDocument(documentNode: DocumentNode, operationName?: string): OperationDefinitionNode;
4export declare const getOperationASTFromRequest: (request: ExecutionRequest) => OperationDefinitionNode;