import ColumnService from '../components/data/columnService'; import { RevoGrid } from '../interfaces'; export declare function range(size: number, startAt?: number): number[]; export declare function findPositionInArray(this: T[], el: T, compareFn: (el: T, el2: T) => number): number; export declare function mergeSortedArray(arr1: T[], arr2: T[], compareFn?: (el: T, el2: T) => boolean): T[]; export declare function getScrollbarWidth(doc: Document): number; export declare function scaleValue(value: number, from: [number, number], to: [number, number]): number; export declare function timeout(delay?: number): Promise; export declare function applyMixins(derivedCtor: any, constructors: any[]): void; export declare function isValidNumber(value: any): value is number; /** The first column is a rowIndex, we reject actions like focus, highlight etc. */ export declare function isRowIndex(columnService: ColumnService, x: number): boolean; interface IInjectRowIndex { columns: RevoGrid.ColumnData; canSelectAllRows: boolean; isMobile: boolean; } /** Manually inject row index */ export declare function injectRowIndex({ columns, canSelectAllRows, isMobile }: IInjectRowIndex): RevoGrid.ColumnData; /** Helps determine if we can emit copy and paste event. Only if they are focused inside the grid and NOT editing */ export declare function doesAnyEditorExist(): boolean; /** Is the user clicked item a valid editor? */ export declare function isEditInput(el?: HTMLElement): boolean; /** Is the user in a editor that is actually a focused element */ export declare function isPseudoFocusInput(el?: HTMLElement): boolean; export declare function getOverlayElementId(colKey: RevoGrid.DimensionCols, isContent: boolean): string | undefined; export {};