/** * React-Native Image Sequence Encoder * ----------------------------------- * Thin TypeScript facade around the native “ImageSequenceEncoder” module. * * Usage: * * import { encode } from 'react-native-image-sequence-encoder'; * * const uri = await encode({ * folder: FileSystem.cacheDirectory + 'frames/', * fps: 30, * width: 1280, * height: 720, * output: FileSystem.documentDirectory + 'movie.mp4', * }); */ /** Options passed to `encode()` */ export interface EncoderOptions { /** Directory containing the frame-PNGs. Must end with “/”. */ folder: string; /** Frames per second for the output file. */ fps: number; /** Output video width (pixels). */ width: number; /** Output video height (pixels). */ height: number; /** Absolute destination path for the MP4 (will be overwritten). */ output: string; } /** * Encode a PNG image-sequence into an MP4 and return the file URI. */ export declare function encode(options: EncoderOptions): Promise; /** Convenience default export */ declare const _default: { encode: typeof encode; }; export default _default;