/** * Extracts the file name from a URL string * @param url - The URL to extract the file name from * @returns The decoded file name from the URL, or 'image' if extraction fails */ export declare function extractName(url: string): string; /** * Creates preview objects from File objects * @param files - Array of File objects, FileList, or null/undefined * @returns Array of file preview objects with type, file reference, name, and object URL */ export declare const createFilePreviews: (files: File[] | FileList | null | undefined) => { type: "file"; file: File; name: string; url: string; }[]; /** * Creates preview objects from URLs * @param urls - A single URL string, array of URL strings, or null/undefined * @returns Array of URL preview objects with type, URL, and extracted name */ export declare const createUrlPreviews: (urls: string | string[] | null | undefined) => { type: "url"; url: string; name: string; }[]; /** * Creates preview objects from various input types (Files, URLs, or null/undefined) * @param input - File array, FileList, URL string(s), or null/undefined * @returns Array of preview objects (file or URL previews) */ export declare const createPreviews: (input: File[] | FileList | string | string[] | null | undefined) => { type: "file"; file: File; name: string; url: string; }[] | { type: "url"; url: string; name: string; }[]; /** * Formats a filename to display in the UI by truncating long names * while preserving the extension. * * @param name - The full filename to format * @returns A shortened version of the filename */ export declare const formatFileName: (fileName: string) => string; export declare const convertFileSize: (bytes: number | undefined) => string | undefined;