import { FrameCache, FrameCacheItem } from '../../../types/src/video-editor';

export declare const PRECISION = 10;
export declare function insertFrameToCache(arr: FrameCacheItem[], newObj: FrameCacheItem): void;
export declare function findFrameByColAndRow(frames: FrameCacheItem[], col: number, row: number): FrameCacheItem | null;
export declare function extractFrames({ cache, canvas, duration, maxInterval, src, video, }: {
    cache: FrameCache;
    canvas: {
        columns: number;
        frameHeight: number;
        frameWidth: number;
        rows: number;
        spriteCanvas: HTMLCanvasElement;
        spriteCtx: CanvasRenderingContext2D;
    } | null;
    duration: number;
    maxInterval: number;
    src: string;
    video: HTMLVideoElement;
}): AsyncGenerator<FrameCacheItem, void, unknown>;
export declare function getInterval({ duration, frameWidth, playbackSpeed, scale, }: {
    duration: number;
    frameWidth: number;
    playbackSpeed: number;
    scale: number;
}): number;
