export interface FrameGenerator {
    done: Promise<void>;
    cancel: () => void;
}
export declare type FrameGeneratorStepCallback = (position: number) => void;
/**
 * Requests animation frames for the specified duration.
 * Calls the callback for every valid animation frame with the progress number (0 <= position <= 1)
 *
 * @param {number} duration
 * @param {number} maxFPS
 * @param {FrameGeneratorStepCallback} cb
 * @returns {FrameGenerator}
 */
export declare const createFrameGenerator: (duration: number, maxFPS: number, cb: FrameGeneratorStepCallback) => FrameGenerator;
