/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import { ModalFuncProps } from './Modal'; declare type ConfigUpdate = ModalFuncProps | ((prevConfig: ModalFuncProps) => ModalFuncProps); export declare type ModalFunc = (props: ModalFuncProps) => { destroy: () => void; update: (configUpdate: ConfigUpdate) => void; }; export declare type ModalStaticFunctions = Record, ModalFunc>; export default function confirm(config: ModalFuncProps): { destroy: (...args: any[]) => void; update: (configUpdate: ConfigUpdate) => void; }; export declare function withWarn(props: ModalFuncProps): ModalFuncProps; export declare function withInfo(props: ModalFuncProps): ModalFuncProps; export declare function withSuccess(props: ModalFuncProps): ModalFuncProps; export declare function withError(props: ModalFuncProps): ModalFuncProps; export declare function withConfirm(props: ModalFuncProps): ModalFuncProps; export declare function modalGlobalConfig({ rootPrefixCls }: { rootPrefixCls: string; }): void; export {};