import React from 'react'; import { ModalReactProps } from './Modal'; import '@douyinfe/semi-foundation/lib/cjs/modal/modal.css'; export interface ConfirmProps extends ModalReactProps { type: 'success' | 'info' | 'warning' | 'error' | 'confirm'; } export default function confirm(props: ConfirmProps): { destroy: () => void; update: (newConfig: T extends { type: Exclude; } ? ModalReactProps : ConfirmProps) => void; }; export declare function withInfo(props: ModalReactProps): { cancelButtonProps?: import("../button").BaseButtonProps; children?: React.ReactNode; okButtonProps?: import("../button").BaseButtonProps; bodyStyle?: React.CSSProperties; maskStyle?: React.CSSProperties; style?: React.CSSProperties; icon: string | number | boolean | Iterable | React.JSX.Element; closeIcon?: React.ReactNode; title?: React.ReactNode; content?: React.ReactNode; footer?: React.ReactNode; header?: React.ReactNode; onCancel?: (e: React.MouseEvent) => void | Promise; onOk?: (e: React.MouseEvent) => void | Promise; modalRender?: (node: React.ReactNode) => React.ReactNode; afterClose?: () => void; cancelText?: string; centered?: boolean; className?: string; modalContentClass?: string; closable?: boolean; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; height?: string | number; mask?: boolean; maskClosable?: boolean; maskFixed?: boolean; motion?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType; visible?: boolean; width?: string | number; zIndex?: number; getPopupContainer?: () => HTMLElement; closeOnEsc?: boolean; size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size; lazyRender?: boolean; keepDOM?: boolean; direction?: any; fullScreen?: boolean; preventScroll?: boolean; footerFill?: boolean; type: "info"; }; export declare function withSuccess(props: ModalReactProps): { cancelButtonProps?: import("../button").BaseButtonProps; children?: React.ReactNode; okButtonProps?: import("../button").BaseButtonProps; bodyStyle?: React.CSSProperties; maskStyle?: React.CSSProperties; style?: React.CSSProperties; icon: string | number | boolean | Iterable | React.JSX.Element; closeIcon?: React.ReactNode; title?: React.ReactNode; content?: React.ReactNode; footer?: React.ReactNode; header?: React.ReactNode; onCancel?: (e: React.MouseEvent) => void | Promise; onOk?: (e: React.MouseEvent) => void | Promise; modalRender?: (node: React.ReactNode) => React.ReactNode; afterClose?: () => void; cancelText?: string; centered?: boolean; className?: string; modalContentClass?: string; closable?: boolean; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; height?: string | number; mask?: boolean; maskClosable?: boolean; maskFixed?: boolean; motion?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType; visible?: boolean; width?: string | number; zIndex?: number; getPopupContainer?: () => HTMLElement; closeOnEsc?: boolean; size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size; lazyRender?: boolean; keepDOM?: boolean; direction?: any; fullScreen?: boolean; preventScroll?: boolean; footerFill?: boolean; type: "success"; }; export declare function withWarning(props: ModalReactProps): { cancelButtonProps?: import("../button").BaseButtonProps; children?: React.ReactNode; okButtonProps?: import("../button").BaseButtonProps; bodyStyle?: React.CSSProperties; maskStyle?: React.CSSProperties; style?: React.CSSProperties; icon: string | number | boolean | Iterable | React.JSX.Element; closeIcon?: React.ReactNode; title?: React.ReactNode; content?: React.ReactNode; footer?: React.ReactNode; header?: React.ReactNode; onCancel?: (e: React.MouseEvent) => void | Promise; onOk?: (e: React.MouseEvent) => void | Promise; modalRender?: (node: React.ReactNode) => React.ReactNode; afterClose?: () => void; cancelText?: string; centered?: boolean; className?: string; modalContentClass?: string; closable?: boolean; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; height?: string | number; mask?: boolean; maskClosable?: boolean; maskFixed?: boolean; motion?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType; visible?: boolean; width?: string | number; zIndex?: number; getPopupContainer?: () => HTMLElement; closeOnEsc?: boolean; size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size; lazyRender?: boolean; keepDOM?: boolean; direction?: any; fullScreen?: boolean; preventScroll?: boolean; footerFill?: boolean; type: "warning"; }; export declare function withError(props: ModalReactProps): { title?: React.ReactNode; children?: React.ReactNode; size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size; style?: React.CSSProperties; className?: string; motion?: boolean; getPopupContainer?: () => HTMLElement; footer?: React.ReactNode; header?: React.ReactNode; direction?: any; visible?: boolean; mask?: boolean; zIndex?: number; width?: string | number; height?: string | number; content?: React.ReactNode; closeOnEsc?: boolean; preventScroll?: boolean; afterClose?: () => void; keepDOM?: boolean; icon: string | number | boolean | Iterable | React.JSX.Element; closable?: boolean; onCancel?: (e: React.MouseEvent) => void | Promise; lazyRender?: boolean; modalRender?: (node: React.ReactNode) => React.ReactNode; bodyStyle?: React.CSSProperties; cancelButtonProps?: import("../button").BaseButtonProps; cancelText?: string; centered?: boolean; modalContentClass?: string; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; maskClosable?: boolean; maskStyle?: React.CSSProperties; maskFixed?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType; onOk?: (e: React.MouseEvent) => void | Promise; closeIcon?: React.ReactNode; fullScreen?: boolean; footerFill?: boolean; type: "error"; okButtonProps: { id?: string; block?: boolean; circle?: boolean; children?: React.ReactNode; disabled?: boolean; className?: string; icon?: React.ReactNode; iconPosition?: "left" | "right"; loading?: boolean; htmlType?: import("../button").HtmlType; size?: import("../button").Size; style?: React.CSSProperties; theme?: import("../button").Theme; type: import("../button").Type; prefixCls?: string; onClick?: React.MouseEventHandler; onMouseDown?: React.MouseEventHandler; onMouseEnter?: React.MouseEventHandler; onMouseLeave?: React.MouseEventHandler; 'aria-label'?: string; contentClassName?: string; colorful?: boolean; title?: string; name?: string; value?: string | number | readonly string[]; onAnimationStart?: React.AnimationEventHandler; onAnimationEnd?: React.AnimationEventHandler; form?: string; slot?: string; prefix?: string; dangerouslySetInnerHTML?: { __html: string | TrustedHTML; }; onCopy?: React.ClipboardEventHandler; onCopyCapture?: React.ClipboardEventHandler; onCut?: React.ClipboardEventHandler; onCutCapture?: React.ClipboardEventHandler; onPaste?: React.ClipboardEventHandler; onPasteCapture?: React.ClipboardEventHandler; onCompositionEnd?: React.CompositionEventHandler; onCompositionEndCapture?: React.CompositionEventHandler; onCompositionStart?: React.CompositionEventHandler; onCompositionStartCapture?: React.CompositionEventHandler; onCompositionUpdate?: React.CompositionEventHandler; onCompositionUpdateCapture?: React.CompositionEventHandler; onFocus?: React.FocusEventHandler; onFocusCapture?: React.FocusEventHandler; onBlur?: React.FocusEventHandler; onBlurCapture?: React.FocusEventHandler; onChange?: React.FormEventHandler; onChangeCapture?: React.FormEventHandler; onBeforeInput?: React.FormEventHandler; onBeforeInputCapture?: React.FormEventHandler; onInput?: React.FormEventHandler; onInputCapture?: React.FormEventHandler; onReset?: React.FormEventHandler; onResetCapture?: React.FormEventHandler; onSubmit?: React.FormEventHandler; onSubmitCapture?: React.FormEventHandler; onInvalid?: React.FormEventHandler; onInvalidCapture?: React.FormEventHandler; onLoad?: React.ReactEventHandler; onLoadCapture?: React.ReactEventHandler; onError?: React.ReactEventHandler; onErrorCapture?: React.ReactEventHandler; onKeyDown?: React.KeyboardEventHandler; onKeyDownCapture?: React.KeyboardEventHandler; onKeyPress?: React.KeyboardEventHandler; onKeyPressCapture?: React.KeyboardEventHandler; onKeyUp?: React.KeyboardEventHandler; onKeyUpCapture?: React.KeyboardEventHandler; onAbort?: React.ReactEventHandler; onAbortCapture?: React.ReactEventHandler; onCanPlay?: React.ReactEventHandler; onCanPlayCapture?: React.ReactEventHandler; onCanPlayThrough?: React.ReactEventHandler; onCanPlayThroughCapture?: React.ReactEventHandler; onDurationChange?: React.ReactEventHandler; onDurationChangeCapture?: React.ReactEventHandler; onEmptied?: React.ReactEventHandler; onEmptiedCapture?: React.ReactEventHandler; onEncrypted?: React.ReactEventHandler; onEncryptedCapture?: React.ReactEventHandler; onEnded?: React.ReactEventHandler; onEndedCapture?: React.ReactEventHandler; onLoadedData?: React.ReactEventHandler; onLoadedDataCapture?: React.ReactEventHandler; onLoadedMetadata?: React.ReactEventHandler; onLoadedMetadataCapture?: React.ReactEventHandler; onLoadStart?: React.ReactEventHandler; onLoadStartCapture?: React.ReactEventHandler; onPause?: React.ReactEventHandler; onPauseCapture?: React.ReactEventHandler; onPlay?: React.ReactEventHandler; onPlayCapture?: React.ReactEventHandler; onPlaying?: React.ReactEventHandler; onPlayingCapture?: React.ReactEventHandler; onProgress?: React.ReactEventHandler; onProgressCapture?: React.ReactEventHandler; onRateChange?: React.ReactEventHandler; onRateChangeCapture?: React.ReactEventHandler; onResize?: React.ReactEventHandler; onResizeCapture?: React.ReactEventHandler; onSeeked?: React.ReactEventHandler; onSeekedCapture?: React.ReactEventHandler; onSeeking?: React.ReactEventHandler; onSeekingCapture?: React.ReactEventHandler; onStalled?: React.ReactEventHandler; onStalledCapture?: React.ReactEventHandler; onSuspend?: React.ReactEventHandler; onSuspendCapture?: React.ReactEventHandler; onTimeUpdate?: React.ReactEventHandler; onTimeUpdateCapture?: React.ReactEventHandler; onVolumeChange?: React.ReactEventHandler; onVolumeChangeCapture?: React.ReactEventHandler; onWaiting?: React.ReactEventHandler; onWaitingCapture?: React.ReactEventHandler; onAuxClick?: React.MouseEventHandler; onAuxClickCapture?: React.MouseEventHandler; onClickCapture?: React.MouseEventHandler; onContextMenu?: React.MouseEventHandler; onContextMenuCapture?: React.MouseEventHandler; onDoubleClick?: React.MouseEventHandler; onDoubleClickCapture?: React.MouseEventHandler; onDrag?: React.DragEventHandler; onDragCapture?: React.DragEventHandler; onDragEnd?: React.DragEventHandler; onDragEndCapture?: React.DragEventHandler; onDragEnter?: React.DragEventHandler; onDragEnterCapture?: React.DragEventHandler; onDragExit?: React.DragEventHandler; onDragExitCapture?: React.DragEventHandler; onDragLeave?: React.DragEventHandler; onDragLeaveCapture?: React.DragEventHandler; onDragOver?: React.DragEventHandler; onDragOverCapture?: React.DragEventHandler; onDragStart?: React.DragEventHandler; onDragStartCapture?: React.DragEventHandler; onDrop?: React.DragEventHandler; onDropCapture?: React.DragEventHandler; onMouseDownCapture?: React.MouseEventHandler; onMouseMove?: React.MouseEventHandler; onMouseMoveCapture?: React.MouseEventHandler; onMouseOut?: React.MouseEventHandler; onMouseOutCapture?: React.MouseEventHandler; onMouseOver?: React.MouseEventHandler; onMouseOverCapture?: React.MouseEventHandler; onMouseUp?: React.MouseEventHandler; onMouseUpCapture?: React.MouseEventHandler; onSelect?: React.ReactEventHandler; onSelectCapture?: React.ReactEventHandler; onTouchCancel?: React.TouchEventHandler; onTouchCancelCapture?: React.TouchEventHandler; onTouchEnd?: React.TouchEventHandler; onTouchEndCapture?: React.TouchEventHandler; onTouchMove?: React.TouchEventHandler; onTouchMoveCapture?: React.TouchEventHandler; onTouchStart?: React.TouchEventHandler; onTouchStartCapture?: React.TouchEventHandler; onPointerDown?: React.PointerEventHandler; onPointerDownCapture?: React.PointerEventHandler; onPointerMove?: React.PointerEventHandler; onPointerMoveCapture?: React.PointerEventHandler; onPointerUp?: React.PointerEventHandler; onPointerUpCapture?: React.PointerEventHandler; onPointerCancel?: React.PointerEventHandler; onPointerCancelCapture?: React.PointerEventHandler; onPointerEnter?: React.PointerEventHandler; onPointerLeave?: React.PointerEventHandler; onPointerOver?: React.PointerEventHandler; onPointerOverCapture?: React.PointerEventHandler; onPointerOut?: React.PointerEventHandler; onPointerOutCapture?: React.PointerEventHandler; onGotPointerCapture?: React.PointerEventHandler; onGotPointerCaptureCapture?: React.PointerEventHandler; onLostPointerCapture?: React.PointerEventHandler; onLostPointerCaptureCapture?: React.PointerEventHandler; onScroll?: React.UIEventHandler; onScrollCapture?: React.UIEventHandler; onWheel?: React.WheelEventHandler; onWheelCapture?: React.WheelEventHandler; onAnimationStartCapture?: React.AnimationEventHandler; onAnimationEndCapture?: React.AnimationEventHandler; onAnimationIteration?: React.AnimationEventHandler; onAnimationIterationCapture?: React.AnimationEventHandler; onTransitionEnd?: React.TransitionEventHandler; onTransitionEndCapture?: React.TransitionEventHandler; hidden?: boolean; contextMenu?: string; defaultValue?: string | number | readonly string[]; accessKey?: string; dir?: string; draggable?: boolean | "true" | "false"; lang?: string; translate?: "yes" | "no"; role?: React.AriaRole; contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only"; inputMode?: "search" | "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal"; nonce?: string; tabIndex?: number; color?: string; content?: string; "aria-expanded"?: boolean | "true" | "false"; "aria-haspopup"?: boolean | "dialog" | "menu" | "grid" | "listbox" | "tree" | "true" | "false"; "aria-controls"?: string; "aria-describedby"?: string; defaultChecked?: boolean; suppressContentEditableWarning?: boolean; suppressHydrationWarning?: boolean; autoFocus?: boolean; spellCheck?: boolean | "true" | "false"; radioGroup?: string; about?: string; datatype?: string; inlist?: any; property?: string; rel?: string; resource?: string; rev?: string; typeof?: string; vocab?: string; autoCapitalize?: string; autoCorrect?: string; autoSave?: string; itemProp?: string; itemScope?: boolean; itemType?: string; itemID?: string; itemRef?: string; results?: number; security?: string; unselectable?: "on" | "off"; is?: string; "aria-activedescendant"?: string; "aria-atomic"?: boolean | "true" | "false"; "aria-autocomplete"?: "both" | "none" | "list" | "inline"; "aria-braillelabel"?: string; "aria-brailleroledescription"?: string; "aria-busy"?: boolean | "true" | "false"; "aria-checked"?: boolean | "true" | "false" | "mixed"; "aria-colcount"?: number; "aria-colindex"?: number; "aria-colindextext"?: string; "aria-colspan"?: number; "aria-current"?: boolean | "time" | "true" | "false" | "location" | "page" | "step" | "date"; "aria-description"?: string; "aria-details"?: string; "aria-disabled"?: boolean | "true" | "false"; "aria-dropeffect"?: "link" | "none" | "copy" | "move" | "execute" | "popup"; "aria-errormessage"?: string; "aria-flowto"?: string; "aria-grabbed"?: boolean | "true" | "false"; "aria-hidden"?: boolean | "true" | "false"; "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling"; "aria-keyshortcuts"?: string; "aria-labelledby"?: string; "aria-level"?: number; "aria-live"?: "off" | "assertive" | "polite"; "aria-modal"?: boolean | "true" | "false"; "aria-multiline"?: boolean | "true" | "false"; "aria-multiselectable"?: boolean | "true" | "false"; "aria-orientation"?: "horizontal" | "vertical"; "aria-owns"?: string; "aria-placeholder"?: string; "aria-posinset"?: number; "aria-pressed"?: boolean | "true" | "false" | "mixed"; "aria-readonly"?: boolean | "true" | "false"; "aria-relevant"?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"; "aria-required"?: boolean | "true" | "false"; "aria-roledescription"?: string; "aria-rowcount"?: number; "aria-rowindex"?: number; "aria-rowindextext"?: string; "aria-rowspan"?: number; "aria-selected"?: boolean | "true" | "false"; "aria-setsize"?: number; "aria-sort"?: "none" | "ascending" | "descending" | "other"; "aria-valuemax"?: number; "aria-valuemin"?: number; "aria-valuenow"?: number; "aria-valuetext"?: string; formAction?: string; formEncType?: string; formMethod?: string; formNoValidate?: boolean; formTarget?: string; }; }; export declare function withConfirm(props: ModalReactProps): { cancelButtonProps?: import("../button").BaseButtonProps; children?: React.ReactNode; okButtonProps?: import("../button").BaseButtonProps; bodyStyle?: React.CSSProperties; maskStyle?: React.CSSProperties; style?: React.CSSProperties; icon: string | number | boolean | Iterable | React.JSX.Element; closeIcon?: React.ReactNode; title?: React.ReactNode; content?: React.ReactNode; footer?: React.ReactNode; header?: React.ReactNode; onCancel?: (e: React.MouseEvent) => void | Promise; onOk?: (e: React.MouseEvent) => void | Promise; modalRender?: (node: React.ReactNode) => React.ReactNode; afterClose?: () => void; cancelText?: string; centered?: boolean; className?: string; modalContentClass?: string; closable?: boolean; confirmLoading?: boolean; cancelLoading?: boolean; hasCancel?: boolean; height?: string | number; mask?: boolean; maskClosable?: boolean; maskFixed?: boolean; motion?: boolean; okText?: string; okType?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").OKType; visible?: boolean; width?: string | number; zIndex?: number; getPopupContainer?: () => HTMLElement; closeOnEsc?: boolean; size?: import("@douyinfe/semi-foundation/lib/cjs/modal/modalFoundation").Size; lazyRender?: boolean; keepDOM?: boolean; direction?: any; fullScreen?: boolean; preventScroll?: boolean; footerFill?: boolean; type: "confirm"; };