/** * Splits a given array at a given index. * * @param array - The array to split. * @param index - The index to split at. * @signature * R.splitAt(array, index) * @example * R.splitAt([1, 2, 3], 1) // => [[1], [2, 3]] * R.splitAt([1, 2, 3, 4, 5], -1) // => [[1, 2, 3, 4], [5]] * @dataFirst * @category Array */ declare function splitAt(array: ReadonlyArray, index: number): [Array, Array]; /** * Splits a given array at a given index. * * @param index - The index to split at. * @signature * R.splitAt(index)(array) * @example * R.splitAt(1)([1, 2, 3]) // => [[1], [2, 3]] * R.splitAt(-1)([1, 2, 3, 4, 5]) // => [[1, 2, 3, 4], [5]] * @dataLast * @category Array */ declare function splitAt(index: number): (array: ReadonlyArray) => [Array, Array]; export { splitAt };