import type { CallFrameFn, FrameProps } from '../renderers/vanilla'; import type { SketchPlugin } from './interface'; export interface CapturePluginConfig { enabled: boolean; duration: number; fps?: number; directory?: string; } export default class CapturePlugin implements SketchPlugin { readonly name = "capture"; private config; private captureData; private sketch?; private callFrame?; constructor(config: CapturePluginConfig); setupPlugin(sketch: typeof this.sketch): void; customAnimationLoop(callFrame: CallFrameFn): boolean; onBeforeSetSize(): { dpr: number; } | undefined; onFrame({ timestamp }: FrameProps): void; }