import { Diagnostic } from '@codemirror/lint'; import { VerifyResponse } from '@dynatrace-sdk/client-query'; import { DQLEditorValidityInfo } from '../dql-editor-types.js'; /** * Maps validity info to CodeMirror diagnostics, attaching the styled tooltip renderer. * * `renderMessage` is intentionally kept off {@link DQLEditorValidityInfo} (the public * `onValidationEnd` / `onValidityChange` payload) and added only here, at the CodeMirror * boundary, so the internal tooltip renderer never leaks into the public callback objects. * @internal */ export declare const toDiagnostics: (validityInfo: DQLEditorValidityInfo[]) => Diagnostic[]; /** * Validates the syntax of the given DQL query. * * @remarks Validation results are cached for a short time-to-live (TTL) to reduce redundant requests. * After the TTL expires, the cache entry and its associated timer are cleared. * * @internal */ export declare const verifyQuery: (query: string) => Promise; /** * Validates the syntax of the given DQL query. * @param content - the DQL query to validate * @param onValidationStart - called before the validation starts * @param onValidationEnd - called after validation finished * @internal */ export declare const dqlLinter: (content: string, onValidationStart?: () => void, onValidationEnd?: (validityInfo: DQLEditorValidityInfo[]) => void) => Promise; //# sourceMappingURL=dql-linter.d.ts.map