export declare function clamp(value: number, min: number, max: number): number; /** * Get correct index in a array. * If the array is empty (length 0), return -1. * @param length The length of the array * @param rawIndex The raw index to process */ export declare function getCorrectIndexInArray(length: number, rawIndex: number): number;