import type { IconName } from '../../icon-components/index.js';
import type { PreviewStatus, PreviewType } from './types.js';
export declare const MESSAGES: {
    success: string;
    error: string;
    preview: string;
};
export declare const formatBytes: (bytes?: number, decimals?: number, binaryUnits?: boolean) => string;
export declare function getExtensionsFromMimeTypes(mimeTypes?: string[]): string[];
export declare const getIconKey: (mimeType: string) => IconName;
export declare const validatePdfHeader: (file: File) => Promise<boolean>;
export declare const validateImageHeader: (file: File) => Promise<unknown>;
export declare const validateAudio: (file: File) => Promise<boolean>;
export declare const validateVideo: (file: File) => Promise<boolean>;
export declare const detectPreviewType: (file?: File) => "pdf" | "image" | "audio" | "video" | undefined;
export declare const isCorruptedFile: (file: File) => Promise<boolean>;
export declare const getPreviewComponentFromError: (error: unknown) => "corrupted_file" | "unsupported_file" | null;
export declare const previewSizeStyles: {
    pdf: {
        width: string;
        height: string;
    };
    video: {
        width: string;
        height: string;
    };
    image: {
        width: string;
        height: string;
    };
    audio: {
        width: string;
        height: string;
    };
    unsupported_file: {
        width: string;
        height: string;
    };
};
export declare const validateFileForPreview: (file?: File) => Promise<"success" | undefined>;
export declare const getIconLoading: (type: PreviewType) => IconName;
export declare const getBrokenFileIcon: (type: PreviewType) => IconName;
export declare const getContainerDimensions: (status: PreviewStatus, typePreview?: PreviewType) => string;
//# sourceMappingURL=utils.d.ts.map