import { Extension } from "@codemirror/state";
import { EditorView } from "@codemirror/view";
import type * as LSP from "vscode-languageserver-protocol";
export declare function lsFormatting(): Extension;
/**
 * Format the entire document
 */
export declare function formatDocument(view: EditorView, options: LSP.FormattingOptions): Promise<void>;
export declare function formatDocumentRange(view: EditorView, range: LSP.Range, options: LSP.FormattingOptions): Promise<void>;
export declare function formattingCapabilities(defaultCapabilities: LSP.ClientCapabilities): LSP.ClientCapabilities;
