interface Slice { (a: number, b: number, list: string): string; (a: number, b: number, list: ArrayLike): T[]; (a: number, b: number): { (list: string): string; (list: ArrayLike): T[]; }; (a: number): { (b: number, list: string): string; (b: number, list: ArrayLike): T[]; (b: number): { (list: string): string; (list: ArrayLike): T[]; }; }; } /** * Returns the elements of the given list or string (or object with a `slice` * method) from `fromIndex` (inclusive) to `toIndex` (exclusive). * * @param {Number} fromIndex The start index (inclusive). * @param {Number} toIndex The end index (exclusive). * @param {Array | String} list * @return {Array | String} * @example * * slice(1, 3, ['a', 'b', 'c', 'd']); //=> ['b', 'c'] * slice(1, Infinity, ['a', 'b', 'c', 'd']); //=> ['b', 'c', 'd'] * slice(0, -1, ['a', 'b', 'c', 'd']); //=> ['a', 'b', 'c'] * slice(-3, -1, ['a', 'b', 'c', 'd']); //=> ['b', 'c'] */ declare const _default: Slice; export default _default;