/** * Returns overlapping windows of a fixed size from an array * @param {T[]} array The array to window * @param {number} size Window size * @param {number} [step=1] Step between window starts * @returns {T[][]} Array of windows (incomplete trailing windows are omitted) * @example sliding([1, 2, 3, 4, 5], 3); // [[1, 2, 3], [2, 3, 4], [3, 4, 5]] * @example sliding([1, 2, 3, 4, 5], 3, 2); // [[1, 2, 3], [3, 4, 5]] */ export declare const sliding: (array: T[], size: number, step?: number) => T[][];