import { EmitterSubscription } from 'react-native'; export declare const enum FtpFileType { Dir = "dir", File = "file", Link = "link", Unknown = "unknown" } export interface ListItem { name: string; type: FtpFileType; size: number; timestamp: Date; } export interface FtpSetupConfiguration { ip_address: string; port: number; username: string; password: string; } declare module FtpClient { function setup(config: FtpSetupConfiguration): void; function list(remote_path: string): Promise>; function uploadFile(local_path: string, remote_path: string): Promise; function cancelUploadFile(token: string): Promise; function addProgressListener(listener: (data: { token: string; percentage: number; }) => void): EmitterSubscription; function remove(remote_path: string): Promise; const ERROR_MESSAGE_CANCELLED: string; function downloadFile(local_path: string, remote_path: string): Promise; function cancelDownloadFile(token: string): Promise; } export default FtpClient;