Files
cartlog-admin/node_modules/jodit/esm/plugins/search/helpers/sentence-finder.d.ts
2026-01-01 15:25:19 +05:30

22 lines
674 B
TypeScript

/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module plugins/search
*/
import type { FuzzySearch, ISelectionRange, Nullable } from "../../../types/index";
export interface State {
query: string;
sentence: SentenceFinder;
}
export declare class SentenceFinder {
private readonly searchIndex;
private queue;
private value;
constructor(searchIndex?: FuzzySearch);
add(node: Text): void;
ranges(needle: string, position?: number): Nullable<ISelectionRange[]>;
}