import { Keyframe, Pose, PoseName } from "../poses.js"; import { FaceOptions, PlateOptions } from "./core.js"; //#region src/integrations/export.d.ts type ImageFormat = 'png' | 'jpeg' | 'webp' | 'svg'; interface ImageFileOptions extends FaceOptions { /** Default `png`. `jpeg` and `webp` honour `quality`. */ format?: ImageFormat; /** 0..1, for the lossy formats. Default 0.92. */ quality?: number; /** Default `doodlehead-.`. */ filename?: string; } interface PlateFileOptions extends PlateOptions { format?: ImageFormat; quality?: number; filename?: string; } interface VideoFileOptions extends FaceOptions { /** A built-in name, your own function, or keyframes. Default `turntable`. */ pose?: PoseName | Pose | Keyframe[]; /** Seconds of finished clip. Default 10. */ duration?: number; /** Default 24. */ fps?: number; /** Cycles of the pose within the clip. Default 1 -- one seamless loop. */ loops?: number; /** Overrides the auto-detected webm codec. */ mimeType?: string; videoBitsPerSecond?: number; /** Default `doodlehead-.webm`. */ filename?: string; /** Called with 0..1 as the clip records. */ onProgress?: (progress: number) => void; signal?: AbortSignal; } /** One face as a `File`. */ declare function faceFile(options?: ImageFileOptions): Promise; /** A whole plate as a `File`. */ declare function plateFile(options?: PlateFileOptions): Promise; /** Is `MediaRecorder` here, and will it give us a webm? */ declare function canRecordVideo(): boolean; /** The best webm flavour this browser will record, or null if it won't. */ declare function pickVideoMime(): string | null; /** * A looping clip of the face moving through a pose, as a webm `File`. * * Recording happens in real time -- a ten second clip takes ten seconds -- * because that is how `MediaRecorder` stamps its frames. `onProgress` is there * to keep a button honest about it. */ declare function faceVideoFile(options?: VideoFileOptions): Promise; //#endregion export { type FaceOptions, ImageFileOptions, ImageFormat, PlateFileOptions, type PlateOptions, VideoFileOptions, canRecordVideo, faceFile, faceVideoFile, pickVideoMime, plateFile };