export interface PromiseObject { promise: Promise; resolver: (response?: any) => void; rejecter: (response?: any) => void; } export type TransferStatus = 'failed' | 'completed' | 'running' | 'initiating' | 'queued' | 'canceled'; export type FeatureFlags = 'noBase64Encoding'; export interface ErrorResponse { error: boolean; message: string; debugData?: any; } export interface HttpTransferOptions { /** Indicate custom Server URL */ serverUrlOverride?: string; } export declare class HttpTransfer { constructor(id: string, spec: TransferSpec, files: File[], status?: TransferStatus, options?: HttpTransferOptions); setEndTime(): void; uuid: string; httpGatewayTransfer: boolean; serverUrlOverride?: string; transfer_spec: TransferSpec; add_time: string; current_file: string; end_time: string; transport: string; status: TransferStatus; error_desc: string; error_code: number; bytes_written: number; bytes_expected: number; files: any[]; private recentPackets; get calculated_rate_kbps(): number; recentPacketTransfer(bytes: number): void; get elapsed_usec(): number; get percentage(): number; } export interface TransferSpecPath { source: string; destination?: string; } export interface FolderData { path: string; files: File[]; } export declare class FileSelected { constructor(file: any); name: string; size: number; type: string; } export interface DownloadOptions { /** Require all files to be zipped when downloaded (even if one file) */ zipRequire?: boolean; /** Do not auto download. Return link to consumer */ disableAutoDownload?: boolean; /** Indicate custom Server URL */ serverUrlOverride?: string; } export interface UploadOptions { /** Indicate custom Server URL */ serverUrlOverride?: string; } export interface ConnectStyleFile { lastModified: number; name: string; size: number; type: string; } export interface TransferSpec { authentication?: string; cipher?: string; content_protection?: string; content_protection_passphrase?: string; cookie?: string; create_dir?: boolean; destination_root?: string; dgram_size?: number; direction?: string; fasp_port?: number; http_fallback?: boolean; http_fallback_port?: number; lock_min_rate?: boolean; lock_rate_policy?: boolean; lock_target_rate?: boolean; min_rate_kbps?: number; paths?: TransferSpecPath[]; preserve_times?: boolean; rate_policy?: string; remote_host?: string; remote_password?: string; remote_user?: string; resume?: string; source_root?: string; ssh_port?: number; tags?: any; target_rate_cap_kbps?: number; target_rate_kbps?: number; token?: string; /** GATEWAY SPECIFIC */ zip_required?: boolean; } export interface DataTransferResponse { dataTransfer: { files: FileSelected[]; }; } export interface VideoPlayerOptions { /** Specifies that the video will start playing as soon as it is ready (default is false) */ autoplay?: boolean; /** Specifies that video controls should be displayed (such as a play/pause button etc). (default is true) */ controls?: boolean; /** Specifies that the video will start over again, every time it is finished (default is false) */ loop?: boolean; /** Specifies that the audio output of the video should be muted (default is false) */ muted?: boolean; /** URL of an image to be shown while the video is downloading, or until the user hits the play button (default is unset) */ poster?: string; /** Sets the height of the video player (default is auto) */ height?: number; /** Sets the width of the video player (default is 100% of DOM element) */ width?: number; /** Indicate custom Server URL */ serverUrlOverride?: string; }