/**
 * This file is part of the NocoBase (R) project.
 * Copyright (c) 2020-2024 NocoBase Co., Ltd.
 * Authors: NocoBase Team.
 *
 * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
 * For more information, please refer to: https://www.nocobase.com/agreement.
 */
import { Diagnostic } from '@codemirror/lint';
export declare const computeDiagnosticsFromText: (text: string, options?: {
    /**
     * When provided, treat `ctx.<name>` / `ctx.<name>()` where `<name>` is NOT in this list as a lint issue.
     * This enables context-aware unknown ctx API detection in CodeEditor (best-effort).
     */
    knownCtxMemberRoots?: Iterable<string>;
}) => Diagnostic[];
export declare const createJavaScriptLinter: (options?: {
    knownCtxMemberRoots?: Iterable<string>;
}) => import("@codemirror/state").Extension;
