import type { Theme } from './init-frames.js'; import type { FrameFormat } from '../types/ffmpeg-concat.js'; import { type FrameWriter } from './frame-writer.js'; import GL from 'gl'; import { type GLTransition, type TransitionOpts } from './transition.js'; interface ContextOpts { frameFormat: FrameFormat; theme: Theme; } export interface Context { gl: WebGLRenderingContext & GL.StackGLExtension; width: number; height: number; frameWriter: FrameWriter; transition?: GLTransition; setTransition: ({ name, resizeMode }: Omit) => undefined; render: GLTransition['draw']; flush: FrameWriter['flush']; dispose: GLTransition['dispose']; } export declare const createContext: ({ frameFormat, theme: { width, height } }: ContextOpts) => Context; export {}; //# sourceMappingURL=context.d.ts.map