/** * Based on: * https://stackoverflow.com/questions/7348009/y-coordinate-for-a-given-x-cubic-bezier * https://math.stackexchange.com/questions/26846/is-there-an-explicit-form-for-cubic-b%C3%A9zier-curves * TODO: Reduce rounding error */ export declare class Point { x: number; y: number; constructor(x: number, y: number); } /** * Given a cubic-bezier curve, get the x value (time) given * the y value (progression). * Ex: cubic-bezier(0.32, 0.72, 0, 1); * P0: (0, 0) * P1: (0.32, 0.72) * P2: (0, 1) * P3: (1, 1) */ export declare const getTimeGivenProgression: (p0: Point, p1: Point, p2: Point, p3: Point, progression: number) => number;