import { Position, Point, LineString, FeatureOf, FeatureWithProps, Viewport } from '@nebula.gl/edit-modes'; export declare type NearestPointType = FeatureWithProps; export declare function toDeckColor(color?: [number, number, number, number] | number, defaultColor?: [number, number, number, number]): [number, number, number, number]; export declare function recursivelyTraverseNestedArrays(array: Array, prefix: Array, fn: Function): boolean; export declare function generatePointsParallelToLinePoints(p1: Position, p2: Position, groundCoords: Position): Position[]; export declare function distance2d(x1: number, y1: number, x2: number, y2: number): number; export declare function mix(a: number, b: number, ratio: number): number; export declare function nearestPointOnProjectedLine(line: FeatureOf, inPoint: FeatureOf, viewport: Viewport): NearestPointType; /** * Inserts toInsert string into base string before insertBefore string. * @param base A string to insert into. * @param insertBefore A sub string in `base` string to insert before. * @param toInsert A string to insert. * @returns Combined string. `base` string if `insertBefore` string isn't found. */ export declare function insertBefore(base: string, insertBefore: string, toInsert: string): string; //# sourceMappingURL=utils.d.ts.map