import { ModalFuncProps as OriginModalFuncProps } from 'antd/es/modal'; import React from 'react'; export declare type ModalFuncType = 'confirm' | 'info' | 'success' | 'error' | 'warning' | 'danger'; export interface CheckItem { key: string; label: string; defaultValue?: boolean; disabled?: boolean; tooltip?: string; } interface Option { key: string | number; label: string; } interface RadioOptions { defaultKey?: string | number; options: Option[]; selectPlaceholder?: string; useSelectComponent?: boolean; description?: string; } interface InputOptions { placeholder?: string; required?: boolean; maxLength?: number; textarea?: boolean; } export interface ConfirmArguments { checkboxValues: { [key: string]: boolean; }; radioValue?: string | number; inputValue: string; } export interface ModalFuncProps extends OriginModalFuncProps { closeWhenFailed?: boolean; useCaptcha?: boolean; captchaCode?: string; checklist?: CheckItem[]; checkListInSelect?: boolean; radio?: RadioOptions; input?: InputOptions; onOk?: (args?: ConfirmArguments) => void; extraInfo?: React.ReactNode; } declare type ModalFunc = (props: ModalFuncProps) => { destroy: () => void; update: (newConfig: ModalFuncProps) => void; }; export declare const DangerContentWrapper: import("styled-components").StyledComponent<"div", any, {}, never>; export declare const DangerContentText: import("styled-components").StyledComponent<"div", any, { danger: boolean; }, never>; export declare const DangerContentButtonGroup: import("styled-components").StyledComponent<"div", any, {}, never>; export declare const modalFuncFactory: (fnName: ModalFuncType) => ModalFunc; export declare const info: ModalFunc; export declare const confirm: ModalFunc; export declare const danger: ModalFunc; export declare const warning: ModalFunc; export declare const error: ModalFunc; export declare const success: ModalFunc; export {};