import React from 'react'; import { CommonProps } from './../Element/Element'; declare type FileProps = { /** Name of the file like example.pdf */ name: string; /** URL for downloading the file */ url?: string; /** State for when we are processing an api call */ loading?: boolean; /** Error message to display on the screen */ message?: string; /** An action which initiates deleting the file */ onDelete?: (event: React.MouseEvent) => void; } & CommonProps<'div'>; export declare type FileAttributes = FileProps; declare const File: React.FunctionComponent; export default File;