import { MouseEvent, PropsWithChildren } from 'react'; import { ButtonProps } from '@befe/brick-comp-button'; import { DownloadIframeProps } from './download-iframe'; export interface DownloadButtonProps extends DownloadIframeProps, ButtonProps { /** * 自定义 class */ className?: string; /** * download 执行前的回调,根据返回值确定是否执行 download * - promise,当 promise resolve 后进行 * - false,visible 不进行 * - true | void,立即进行 */ beforeDownload?: ((e: MouseEvent) => Promise | boolean | void) | ((e: MouseEvent) => Promise | boolean | void); } export declare function DownloadButton(props: PropsWithChildren): import("react/jsx-runtime").JSX.Element; export declare namespace DownloadButton { var displayName: string; }