import React, { HTMLAttributes } from 'react';
export type AttachmentProps = HTMLAttributes<HTMLDivElement> & {
    /**
     * File mimetype
     */
    mimeType?: string;
    /**
     * File name
     */
    name?: string;
    onClose?: () => void;
    onOpen?: () => void;
    /**
     * File url
     */
    url: string;
    /**
     * Attachment container width
     */
    width?: number | string;
};
export declare const Attachment: {
    ({ url, name, width, mimeType, onOpen, ...props }: AttachmentProps): JSX.Element;
    Preview: React.NamedExoticComponent<{
        mimeType: string;
        name?: string;
        onOpen?: () => void;
        url: string;
    }>;
};
