import { Page } from 'puppeteer';
import { IAction } from '@fullstackcraftllc/codevideo-types';

declare class VideoGenerator {
    private trueAudioStartTime;
    private actions;
    private url;
    private actionsAudioDirectory;
    private forceOverwriteAudioFiles;
    private textToSpeechOption;
    private videoFile;
    private audioStartTimes;
    initialize: () => Promise<void>;
    playAudioInPuppeteer: (page: Page, audioHash: string, filePath: string) => Promise<void>;
    runPuppeteerAutomation: (url: string) => Promise<void>;
    makeVideo: () => Promise<void>;
    getVideoAsBuffer: () => Promise<Buffer>;
}

declare const generateVideoFromActions: (actions: Array<IAction>) => Promise<Buffer>;

type TextToSpeechOptions = 'sayjs' | 'elevenlabs' | 'openai';

export { type TextToSpeechOptions, VideoGenerator, generateVideoFromActions };
