@arco-design/web-react
Version:
Arco Design React UI Library.
10 lines (9 loc) • 418 B
TypeScript
import { MentionsProps } from './interface';
interface MeasureIndex {
location: number;
prefix: string;
}
export declare function isValidSearch(text: string, { split }: MentionsProps): boolean;
export declare function getBeforeSelectionText({ value, selectionStart }: HTMLTextAreaElement): string;
export declare function getLastMeasureIndex(text: string, prefix?: string | string[]): MeasureIndex;
export {};