/**
 * Original antd implementation: https://github.com/ant-design/ant-design/tree/4.x-stable/components/modal/useModal
 * Replaced info / warn dialogs with simpler Modal component using onCancel prop
 * Also added a bit more type safety and proper hook deps
 */
import React from 'react';
import type { ModalProps } from './modal';
type AnyArgs = Array<any>;
type ModalConfig = Omit<ModalProps, 'open'> & {
    onCancel?: (...args: AnyArgs) => any;
};
type UpdateModalFunc = (newConfig: ModalConfig) => void;
type DestroyModalFunc = () => void;
type ShowModalFunc = (config: ModalConfig) => {
    update: UpdateModalFunc;
    destroy: DestroyModalFunc;
};
export declare function useModal(): [ShowModalFunc, React.ReactElement];
export {};
//# sourceMappingURL=useModal.d.ts.map