import { DocumentNode, FragmentDefinitionNode, GraphQLSchema, SourceLocation, ValidationRule } from 'graphql'; import { DiagnosticSeverity, Diagnostic } from 'vscode-languageserver-types'; import { IRange } from '@theguild/graphql-language-service-types'; export declare const SEVERITY: { Error: "Error"; Warning: "Warning"; Information: "Information"; Hint: "Hint"; }; export declare type Severity = typeof SEVERITY; export declare type SeverityEnum = keyof Severity; export declare const DIAGNOSTIC_SEVERITY: { Error: DiagnosticSeverity; Warning: DiagnosticSeverity; Information: DiagnosticSeverity; Hint: DiagnosticSeverity; }; export declare function getDiagnostics(query: string, schema?: GraphQLSchema | null | undefined, customRules?: Array, isRelayCompatMode?: boolean, externalFragments?: FragmentDefinitionNode[] | string): Array; export declare function validateQuery(ast: DocumentNode, schema?: GraphQLSchema | null | undefined, customRules?: Array | null, isRelayCompatMode?: boolean): Array; export declare function getRange(location: SourceLocation, queryText: string): IRange; //# sourceMappingURL=getDiagnostics.d.ts.map