@health-ecosystem/file-upload
Version:
File upload library for Health Ecosystem applications with improved Next.js 15+ compatibility
10 lines • 679 B
TypeScript
import { type ClassValue } from "clsx";
export declare function cn(...inputs: ClassValue[]): string;
export declare function formatFileSize(bytes: number): string;
export declare function getFileIcon(fileType: string): string;
export declare function validateFileType(file: File, allowedTypes: string[]): boolean;
export declare function validateFileSize(file: File, maxSize: number): boolean;
export declare function createFilePreview(file: File): Promise<string>;
export declare function generateUniqueId(): string;
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => void;
//# sourceMappingURL=utils.d.ts.map