import type { Node as ProseMirrorNode } from '@tiptap/pm/model'; export interface DocumentTextMatch { from: number; to: number; before: string; matchedText: string; after: string; truncatedBefore: boolean; truncatedAfter: boolean; } export declare function documentTextMatches(document: ProseMirrorNode, rawQuery: string): DocumentTextMatch[];