import type { Universe } from '@ephox/boss'; import { Optional } from '@ephox/katamari'; import { type SpotPoint } from '@ephox/phoenix'; import * as TextSearchBase from '../../textdata/TextSearch'; import { type TextSeekerOutcome, type TextSeekerPhase, type TextSeekerPhaseConstructor, type TextSeekerPhaseProcessor } from '../../textdata/TextSeeker'; type CharPos = TextSearchBase.CharPos; export interface TextSearchSeeker { readonly regex: () => RegExp; readonly attempt: (phase: TextSeekerPhaseConstructor, item: E, text: string, index: number) => TextSeekerPhase; } type PreviousCharFn = (text: string, offset: Optional) => Optional; type NextCharFn = (text: string, offset: Optional) => Optional; type RepeatLeftFn = (universe: Universe, item: E, offset: number, process: TextSeekerPhaseProcessor) => TextSeekerOutcome; type RepeatRightFn = (universe: Universe, item: E, offset: number, process: TextSeekerPhaseProcessor) => TextSeekerOutcome; export declare const TextSearch: { previousChar: PreviousCharFn; nextChar: NextCharFn; repeatLeft: RepeatLeftFn; repeatRight: RepeatRightFn; expandLeft: (universe: Universe, item: E, offset: number, rawSeeker: TextSearchSeeker) => TextSeekerOutcome; expandRight: (universe: Universe, item: E, offset: number, rawSeeker: TextSearchSeeker) => TextSeekerOutcome; scanRight: (universe: Universe, item: E, originalOffset: number) => Optional>; }; export {}; //# sourceMappingURL=TextSearch.d.ts.map