import type { TypeOfList } from '../types'; import type { Func, List } from '@sdkset/types'; /** * 用于创建`indexOf`、`lastIndexOf`的内部函数。 * * @example * _createIndexFinder(1, findIndex, sortedIndex) * => indexOf * * _createIndexFinder(1, findLastIndex) * => lastIndexOf * * * @param dir 1:从左至右 -1:从右至左 * @param predicateFind 谓词函数 * @param sortedIndex 排序函数 */ export declare function _createIndexFinder(dir: 1 | -1, predicateFind: Func, sortedIndex?: Func): >(array: V, value?: TypeOfList | undefined, isSortedOrFromIndex?: number | boolean) => number;