import { RangeSet } from "@codemirror/rangeset";
import { Extension, Facet, StateField } from "@codemirror/state";
import { PrismaQuery } from "./find-queries";
/**
 * Facet to allow configuring query execution callback
 */
export declare type OnExecute = (query: string) => void;
export declare const OnExecuteFacet: Facet<OnExecute, OnExecute>;
/**
 * State field that tracks which ranges are PrismaClient queries.
 * We don't store a DecorationSet directly in the StateField because we need to be able to find the `text` of a query
 */
export declare const prismaQueryStateField: StateField<RangeSet<PrismaQuery>>;
/**
 * An extension that enables Prisma Client Query tracking
 */
export declare function state(config: {
    onExecute?: OnExecute;
}): Extension;
