import type { FileMetadata } from '../../models/interfaces';
/**
 * Format file size in bytes to human-readable string
 */
export declare function formatFileSize(bytes: number): string;
/**
 * Get icon name for file based on content type
 */
export declare function getFileIcon(contentType: string): string;
/**
 * Unified confirmation dialog - uses Alert.alert for all platforms
 */
export declare function confirmAction(message: string, title?: string, confirmText?: string, cancelText?: string): Promise<boolean>;
/**
 * Convert DocumentPicker asset to File object
 * Handles both web (native File API) and mobile (URI-based) file sources
 * Expo 54 compatible - works across all platforms
 */
export declare function convertDocumentPickerAssetToFile(doc: {
    file?: File | Blob;
    uri?: string;
    name?: string | null;
    mimeType?: string | null;
    size?: number | null;
}, index: number): Promise<File | null>;
/**
 * Helper to safely request a thumbnail variant only for image mime types.
 * Prevents backend warnings: "Variant thumb not supported for mime application/pdf".
 *
 * @param file - File metadata
 * @param variant - Variant type (default: 'thumb')
 * @param getFileDownloadUrl - Function to get download URL from oxyServices
 */
export declare function getSafeDownloadUrl(file: FileMetadata, variant: string | undefined, getFileDownloadUrl: (fileId: string, variant?: string) => string): string;
/**
 * Upload file raw - helper function for file uploads
 */
export declare function uploadFileRaw(file: File | Blob, userId: string, oxyServices: any, visibility?: 'private' | 'public' | 'unlisted'): Promise<any>;
//# sourceMappingURL=fileManagement.d.ts.map