import type { EditorHost } from '@blockeditor/lit';
import { BlockModel } from '@blockeditor/store';
import type { AffineInlineEditor } from '../inline/presets/affine-inline-specs.js';
import type { RichText } from './rich-text/rich-text.js';
export declare const createKeydownObserver: ({ target, onUpdateQuery, onMove, onConfirm, onEsc, interceptor, abortController, }: {
    target: RichText;
    onUpdateQuery: (val: string) => void;
    onMove: (step: 1 | -1) => void;
    onConfirm: () => void;
    onEsc?: (() => void) | undefined;
    interceptor?: ((e: KeyboardEvent, next: () => void) => void) | undefined;
    abortController: AbortController;
}) => void;
/**
 * Remove specified text from the current range.
 */
export declare function cleanSpecifiedTail(editorHost: EditorHost, inlineEditorOrModel: AffineInlineEditor | BlockModel, str: string): void;
/**
 * You should add a container before the scrollbar style to prevent the style pollution of the whole page.
 */
export declare const scrollbarStyle: (container: string) => import("lit").CSSResult;
//# sourceMappingURL=utils.d.ts.map