/** * Ux4gFileUpload * * React Native port of the Flutter `Ux4gFileUpload` component (`file_upload.dart`). * Supports real file picking (document picker) and camera scanning (image picker). * Features: solid/dashed border styles, upload progress, error/retry states, * file type badge icons, and Ux4gToast error notifications. */ import React from 'react'; import { StyleProp, TextStyle, ViewStyle } from 'react-native'; export declare enum UploadStatus { idle = "idle", uploading = "uploading", success = "success", error = "error" } export interface UploadedFile { id: string; name: string; fileSize: number; status: UploadStatus; progress: number; errorMessage?: string; uri?: string; } export type Ux4gFileUploadBorderStyle = 'solid' | 'dashed'; export interface Ux4gFileUploadProps { maxFiles?: number; maxFileSize?: number; onFilesChanged?: (files: UploadedFile[]) => void; onUpload?: (file: UploadedFile) => Promise; allowedExtensions?: string[]; borderStyle?: Ux4gFileUploadBorderStyle; buttonBorderRadius?: number; buttonColor?: string; buttonBorderColor?: string; buttonStyle?: StyleProp; errorTitle?: string; errorText?: string; errorTitleStyle?: StyleProp; errorTextStyle?: StyleProp; /** Pre-populated initial files for testing / showcase */ initialFiles?: UploadedFile[]; } export declare function formatFileSize(bytes: number): string; export declare const Ux4gFileUpload: React.FC; //# sourceMappingURL=FileUpload.d.ts.map