import * as React from 'react'; import { View } from 'react-native'; interface MegacoolProps { /** Edit the default sharing text to make it more personal and customized for each place you use it. */ sharingText?: string; /** Set numbers of frames to record per second. Recommended range: 1 - 10. The default is 10: */ frameRate?: number; /** Set the number of frames per second when playing the GIF. The default is 10 frames / second. The GIF will be exported with this frame rate and it doesn't affect the recording frame rate. */ playbackFrameRate?: number; /** Max number of frames to record, default is 50 frames. */ maxFrames?: number; /** Set a delay (in milliseconds) for the last frame of the GIF. The default is 1 second to give a natural break before the GIF loops again. */ lastFrameDelay?: number; onStartedRecording?: () => void; onStoppedRecording?: () => void; onCapturedFrame?: () => void; onStartedSharing?: () => void; } interface State { url: string; } export declare class Megacool extends React.Component { state: State; view: View; static init(apiKey: string): void; startRecording(): any; captureFrame(): any; stopRecording(): any; hidePreview(): any; presentMegacoolShare(): any; presentImageShare(): any; presentVideoShare(): Promise; saveImageToCameraRoll(): Promise; saveVideoToCameraRoll(): Promise; videoUrl(): Promise; private requestSavePermission; private handle; private runCommand; private static runCommand; render(): JSX.Element; } export {};