import type { ArgumentNode, DefinitionNode, DocumentNode, FieldNode, OperationDefinitionNode, SelectionNode, SelectionSetNode, VariableDefinitionNode } from 'graphql'; export type Arg = { name: string; value: string; }; export type Var = { name: string; type: string; }; export declare function createArgument({ name, value }: Arg): ArgumentNode; export declare function createVariableDefinition({ name, type }: Var): VariableDefinitionNode; export declare function createSelectionSet(selections: SelectionNode[]): SelectionSetNode; export declare function createField(name: string): FieldNode; export declare function isQueryNode(node: DefinitionNode): node is OperationDefinitionNode; export declare function findQuery(ast: DocumentNode): OperationDefinitionNode | undefined; export declare function updateQuery(ast: DocumentNode, update: (query: OperationDefinitionNode) => OperationDefinitionNode): DocumentNode; export declare function addQueryVariables(variables: Var[], ast: DocumentNode): DocumentNode; export declare function wrapSelectionSet(selectionSet: SelectionSetNode, name: string, args?: ArgumentNode[]): SelectionSetNode; export declare function wrapQuery(name: string, args: Arg[], ast: DocumentNode): DocumentNode;