@atlaskit/renderer
Version:
Renderer component
9 lines (8 loc) • 368 B
TypeScript
import type { Node, Schema } from '@atlaskit/editor-prosemirror/model';
export declare function getIndexMatch(doc: Node, schema: Schema, selectedText: string, startIndex: number): {
blockNodePos?: number;
matchIndex: number;
numMatches: number;
textContent: string;
};
export declare function countMatches(searchString: string, query: string): number;