import { type Extension, Facet } from '@codemirror/state'; import type { Annotation } from '@openctx/client'; export interface OpenCtxDecorationsConfig { createDecoration: (container: HTMLElement, spec: { /** * The leading whitespace on the line of code that the items are attached to. */ indent: string | undefined; anns: Annotation[]; }) => { destroy?: () => void; }; visibility: boolean; } /** * Show OpenCtx decorations. */ export declare function showOpenCtxDecorations(config: OpenCtxDecorationsConfig): Extension; /** * Provide OpenCtx data. */ export declare function openCtxData(data: Annotation[] | undefined): Extension; /** * Facet for OpenCtx data. */ export declare const openCtxDataFacet: Facet[], Annotation[]>; /** * Theme for OpenCtx decorations. */ export declare const baseTheme: Extension; //# sourceMappingURL=extension.d.ts.map