import type { Universe } from '@ephox/boss';
import type { Optional } from '@ephox/katamari';

import type { WordRange } from '../../data/WordRange';
import * as Selection from '../../smartselect/Selection';

// The optimise parameter is no longer required in this API.
// Remove optimise as a code quality task: TBIO-4356
type WordFn = <E, D>(universe: Universe<E, D>, item: E, offset: number, optimise?: any) => Optional<WordRange<E>>;
const word: WordFn = Selection.word;

export {
  word
};
