import { NoMatchIndexNominal } from "./typing"; /** * Returns the index of the first occurrence of a value in an array. * @param array the array where the search is performed. * @param value the value to locate in the array * @param startIndex the array index at which to begin the search. If `startIndex` is omitted, the search starts at index 0. * @param count the number of elements in the section to search. */ export declare function indexOf(array: TArray, value: TValue, startIndex?: number, count?: number): TValue extends TArray[number] ? number : NoMatchIndexNominal; /** * Returns the index of the first occurrence of a value in an array. * @param array the array where the search is performed. * @param value the value to locate in the array * @param startIndex the array index at which to begin the search. If `startIndex` is omitted, the search starts at index 0. * @param count the number of elements in the section to search. */ export declare function indexOf(array: TArray, value: TArray[number], startIndex?: number, count?: number): number; //# sourceMappingURL=indexOf.d.ts.map