/**
 * A thin wrapper around the sql() extension that lets you swap in a custom
 * schema at runtime with applyEntities().
 */
import { Extension, StateField } from "@codemirror/state";
import { SQLConfig } from "@codemirror/lang-sql";
import { CompletionSource } from "@codemirror/autocomplete";
import { EditorView } from "@codemirror/view";
import { Entity } from "../../../types";
declare const entities: StateField<Entity[]>;
declare function extendedSql(config?: SQLConfig, additionalCompletionSource?: CompletionSource): Extension;
/**
 * Apply SQL extension with schema information
 */
declare function applySqlExtension(view: EditorView, options?: {
    defaultSchema?: string;
    entities?: Entity[];
}): void;
declare function applyEntities(view: EditorView, entities: Entity[]): void;
export { entities, applySqlExtension, applyEntities, extendedSql as sql };
