1 | import { MentionsProps } from './Mentions';
|
2 | import { OptionProps } from './Option';
|
3 | export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
4 | declare type OmitFunc = <T extends object, K extends [...(keyof T)[]]>(obj: T, ...keys: K) => {
|
5 | [K2 in Exclude<keyof T, K[number]>]: T[K2];
|
6 | };
|
7 | export declare const omit: OmitFunc;
|
8 |
|
9 |
|
10 |
|
11 | export declare function getBeforeSelectionText(input: HTMLTextAreaElement): string;
|
12 | interface MeasureIndex {
|
13 | location: number;
|
14 | prefix: string;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare function getLastMeasureIndex(text: string, prefix?: string | string[]): MeasureIndex;
|
20 | interface MeasureConfig {
|
21 | measureLocation: number;
|
22 | prefix: string;
|
23 | targetText: string;
|
24 | selectionStart: number;
|
25 | split: string;
|
26 | }
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare function replaceWithMeasure(text: string, measureConfig: MeasureConfig): {
|
34 | text: string;
|
35 | selectionLocation: number;
|
36 | };
|
37 | export declare function setInputSelection(input: HTMLTextAreaElement, location: number): void;
|
38 | export declare function validateSearch(text: string, props: MentionsProps): boolean;
|
39 | export declare function filterOption(input: string, { value }: OptionProps): boolean;
|
40 | export {};
|