import { DocumentNode, FragmentDefinitionNode, GraphQLSchema, SourceLocation, ValidationRule } from 'graphql'; import { DiagnosticSeverity } from 'vscode-languageserver-types'; import { GraphQLLanguageServiceOptions, IRange, Diagnostic } from '../types'; export declare const SEVERITY: { readonly Error: 'Error'; readonly Warning: 'Warning'; readonly Information: 'Information'; readonly Hint: 'Hint'; }; export type Severity = typeof SEVERITY; export 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, options?: GraphQLLanguageServiceOptions): 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