import type { CompressOptions, CompressResult, EditorConfig, ExtractAudioOptions, ExtractAudioResult, FileValidationResult, FrameExtractionOptions, FrameResult, GifOptions, GifResult, MergeOptions, MergeResult, MixAudioOptions, MixAudioResult, SaveToDocumentsResult, SaveToPhotoResult, ShareResult, TrimOptions, TrimResult } from './NativeVideoTrim'; declare const VideoTrim: any; /** * Show video editor * * @param {string} filePath: absolute non-empty file path to edit * @param {EditorConfig} config: editor configuration * @param {Function} onEvent: event callback * @returns {void} */ export declare function showEditor(filePath: string, config: Partial> & { headerTextColor?: string; trimmerColor?: string; handleIconColor?: string; waveformColor?: string; waveformBackgroundColor?: string; }): void; /** * List output files generated at all time * * @returns {Promise} A **Promise** which resolves to array of files */ export declare function listFiles(): Promise; /** * Clean output files generated at all time * * @returns {Promise} A **Promise** which resolves to number of deleted files */ export declare function cleanFiles(): Promise; /** * Delete a file * * @param {string} filePath: absolute non-empty file path to delete * @returns {Promise} A **Promise** which resolves `true` if successful */ export declare function deleteFile(filePath: string): Promise; /** * Close editor */ export declare function closeEditor(): void; /** * Check if a file is valid audio or video file * * @param {string} url: file path to validate * @returns {Promise} A **Promise** which resolves file info if successful */ export declare function isValidFile(url: string): Promise; /** * Trim a video file * * @param {string} url: absolute non-empty file path to edit * @param {TrimOptions} options: trim options * @returns {Promise} A **Promise** which resolves to the TrimResult interface */ export declare function trim(url: string, options: Partial): Promise; /** * Extract a single frame from a video at a given timestamp * * @param {string} url: absolute non-empty file path * @param {Partial} options: extraction options * @returns {Promise} A **Promise** which resolves to the FrameResult */ export declare function getFrameAt(url: string, options?: Partial): Promise; /** * Extract the audio track from a video file * * @param {string} url: absolute non-empty file path * @param {Partial} options: extraction options * @returns {Promise} A **Promise** which resolves to the result */ export declare function extractAudio(url: string, options?: Partial): Promise; /** * Compress a video file to reduce its size * * @param {string} url: absolute non-empty file path * @param {Partial} options: compression options * @returns {Promise} A **Promise** which resolves to the result */ export declare function compress(url: string, options?: Partial): Promise; /** * Convert a video segment to an animated GIF * * @param {string} url: absolute non-empty file path * @param {Partial} options: GIF conversion options * @returns {Promise} A **Promise** which resolves to the result */ export declare function toGif(url: string, options?: Partial): Promise; /** * Merge multiple media files into a single file (headless, no UI) * * @param {string[]} urls: array of file paths to merge in order * @param {Partial} options: merge options * @returns {Promise} A **Promise** which resolves to the result */ export declare function merge(urls: string[], options?: Partial): Promise; /** * Mix (or replace) an external audio track, such as background music or a * voice-over, into a video (headless, no UI). The video stream is copied * unchanged, so only the audio is re-encoded. * * @param {string} videoPath: absolute non-empty path to the source video * @param {string} audioPath: absolute non-empty path to the audio to mix in * @param {Partial} options: mixing options * @returns {Promise} A **Promise** which resolves to the result */ export declare function mixAudio(videoPath: string, audioPath: string, options?: Partial): Promise; /** * Save a file to the device's photo library * * @param {string} filePath: absolute path to the file * @returns {Promise} A **Promise** which resolves to the result */ export declare function saveToPhoto(filePath: string): Promise; /** * Present the system document picker to save a file * * @param {string} filePath: absolute path to the file * @returns {Promise} A **Promise** which resolves to the result */ export declare function saveToDocuments(filePath: string): Promise; /** * Open the system share sheet for a file * * @param {string} filePath: absolute path to the file * @returns {Promise} A **Promise** which resolves to the result */ export declare function share(filePath: string): Promise; export * from './NativeVideoTrim'; export default VideoTrim; //# sourceMappingURL=index.d.ts.map