import { Facet } from "@codemirror/state";
import type { EditorView } from "@codemirror/view";
export declare const formatCallbackFacet: Facet<(formattedCode: string) => void, (formattedCode: string) => void>;
export declare function formatDocument(view: EditorView): boolean;
export declare function createFormatExtension(onFormat: (formattedCode: string) => void): import("@codemirror/state").Extension[];
